/* Login Page - Glassmorphism Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: #1a1a1a;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #7e72d1 0%, #5f55a6 50%, #580594 100%);
    z-index: 0;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #9d8fd9;
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #7e72d1;
    bottom: -50px;
    left: -50px;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #b8a9e8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo-section a img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-section h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 16px;
}

.logo-section p {
    font-size: 0.9rem;
    color: #555;
    margin-top: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #7e72d1;
    box-shadow: 0 0 0 3px rgba(126, 114, 209, 0.2);
}

.input-wrapper input::placeholder {
    color: #999;
}

.input-wrapper > i,
.password-wrapper .password-toggle i {
    font-size: 1.1rem;
}

.input-wrapper > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Password input - icon on left, toggle button on right */
.password-wrapper input {
    padding-right: 44px;
    padding-left: 48px;
}

.password-wrapper .password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-wrapper .password-toggle:hover {
    color: #7e72d1;
}

.input-error {
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 6px;
}

.form-links {
    text-align: center;
    margin-bottom: 24px;
}

.form-links a {
    display: inline-block;
    font-size: 0.9rem;
    color: #7e72d1;
    text-decoration: none;
    transition: color 0.2s;
}

.form-links a:hover {
    color: #5f55a6;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #7e72d1 0%, #5f55a6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(126, 114, 209, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}
