/* ==========================================
   Login Page Styles
   ========================================== */

body {
    background: url('../loginbg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    color: #e1e4ea;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(14, 18, 26, 0.7);
    z-index: -2;
}

/* ==========================================
   Login Container
   ========================================== */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: rgba(248, 249, 252, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideIn 0.6s ease-out;
    color: #1f2a37;
}

/* Login Logo */
.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 30px 15px;
    background: transparent;
}

.login-logo-image {
    max-height: 70px;
    height: auto;
    max-width: 70%;
    object-fit: contain;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Login Header
   ========================================== */
.login-header {
    background: transparent;
    color: #1f2a37;
    padding: 20px 30px 10px;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.login-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #6d7688;
}

/* ==========================================
   Login Body
   ========================================== */
.login-body {
    padding: 35px 30px 40px;
    color: #1f2a37;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    border: 1px solid rgba(122, 134, 154, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2a37;
}

.form-control::placeholder {
    color: rgba(31, 42, 55, 0.45);
}

.form-control:focus {
    border-color: rgba(122, 134, 154, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(122, 134, 154, 0.2);
    background: #fff;
}

/* ==========================================
   Input Groups
   ========================================== */
.input-group-text {
    background: rgba(122, 134, 154, 0.08);
    border: 1px solid rgba(122, 134, 154, 0.2);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #aab2c3;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

/* ==========================================
   Login Button
   ========================================== */
.btn-login {
    background: linear-gradient(135deg, #9ea8ba 0%, #7a869a 100%);
    border: none;
    color: white;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(122, 134, 154, 0.4);
    background: linear-gradient(135deg, #7a869a 0%, #5c6474 100%);
}

/* ==========================================
   Form Check
   ========================================== */
.form-check-input:checked {
    background-color: #7a869a;
    border-color: #7a869a;
}

/* ==========================================
   Divider
   ========================================== */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================
   Social Login
   ========================================== */
.social-login {
    display: flex;
    gap: 10px;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1f2a37;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.btn-social i {
    margin-right: 8px;
}

/* ==========================================
   Register Link
   ========================================== */
.register-link {
    text-align: center;
    margin-top: 25px;
    color: #9ea8ba;
}

.register-link a {
    color: #7a869a;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    color: #f5f7fb;
    text-decoration: underline;
}

/* ==========================================
   Floating Background Shapes
   ========================================== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 20s infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 15%;
    top: 30%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 20%;
    bottom: 20%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    right: 10%;
    bottom: 30%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* ==========================================
   Forgot Password Link
   ========================================== */
.forgot-password-link {
    color: #6d7688;
    font-size: 0.9rem;
}

.forgot-password-link:hover {
    color: #1f2a37;
    text-decoration: underline;
}

/* ==========================================
   Validation Styles
   ========================================== */
.text-danger {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-summary-errors {
    color: #dc3545;
}

.validation-summary-errors ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.alert {
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 576px) {
    .login-container {
        padding: 10px;
    }
    
    .login-logo {
        padding: 30px 20px 15px;
    }
    
    .login-logo-image {
        max-height: 60px;
    }
    
    .login-header {
        padding: 20px;
    }
    
    .login-header h2 {
        font-size: 1.4rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .login-body {
        padding: 30px 20px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .btn-social {
        width: 100%;
    }
}

