body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    font-family: 'Cairo', sans-serif;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* z-index: -1; */
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(36, 40, 53, 0.5);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    max-width: 450px;
    width: 100%;
}

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

.logo {
    width: 60px;
    height: 60px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: bold;
    color: #1a1a2e;
}

.welcome-text {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0;
}

.form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    background-color: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px !important;
    color: white;
    padding: 12px 15px 12px 45px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(40, 40, 60, 0.9);
    border-color: #00ff88;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
    color: white;
}

/* Fix browser autocomplete styling - keep original colors */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(40, 40, 60, 0.8) inset !important;
    -webkit-text-fill-color: white !important;
    background-color: rgba(40, 40, 60, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(40, 40, 60, 0.9) inset !important;
    border-color: #00ff88 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25) !important;
}


.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group-text {
    background-color: transparent;
    border: none;
    color: white;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.input-group {
    position: relative;
}

.input-group span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
}

.btn-signin {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-signin:hover {
    background: linear-gradient(135deg, #00cc6a, #00aa55);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    min-height: 40px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.forgot-password {
    color: #4dabf7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #74c0fc;
}

.signup-link {
    color: white;
    text-align: center;
    margin-top: 20px;
}

.signup-link a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    color: #00cc6a;
}

.branding {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
}

.brand-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .welcome-text {
        font-size: 20px;
    }
}
