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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem 2rem;
    width: 100%;
    min-height: calc(100vh - 60px - 350px);
}

.login-box {
    background: rgba(229, 216, 216, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2);
    width: 100%;
    max-width: 380px;
    animation: fadeIn 0.6s ease;
    border: 1px solid rgba(245, 158, 11, 0.1);
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.logo-circle i {
    font-size: 2.5rem;
    color: white;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.msg {
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 14px;
    text-align: center;
}

.msg-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.msg-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.input-wrap input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: white;
}

.input-wrap input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.input-wrap input:focus + i {
    color: #f59e0b;
}

.err {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 0.3rem;
    margin-left: 4px;
}

.btn-login {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

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

.contact-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 1.5rem;
}

.contact-text a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #d97706;
    text-decoration: underline;
}

.footer-text {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 1.5rem;
}

/* Login page specific footer styles */
body .footer {
    padding: 2rem 2rem 1rem;
}

body .footer-container {
    gap: 2rem;
    margin-bottom: 1.5rem;
}

body .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

body .footer-section p,
body .footer-section a {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

body .social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .social-links a i {
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

body .footer-bottom {
    padding-top: 1rem;
}

body .footer-bottom p {
    font-size: 0.8rem;
}

/* Login page specific navbar styles */
body .navbar {
    padding: 0.5rem 0;
}

body .nav-container {
    padding: 0 1.5rem;
}

body .nav-logo {
    width: 35px;
    height: 35px;
}

body .nav-title {
    font-size: 1.2rem;
}

body .nav-links {
    gap: 1.5rem;
}

body .nav-links a {
    font-size: 0.9rem;
}

body .login-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }
    
    .login-box {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }
    
    .logo-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 0.6rem;
    }
    
    .logo-circle img {
        padding: 6px;
    }
    
    .logo-section h1 {
        font-size: 20px;
    }
    
    .login-form {
        gap: 0.85rem;
    }
    
    .input-wrap input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    
    .input-wrap i {
        left: 12px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 15px;
    }
    
    .msg {
        padding: 0.6rem;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .login-box {
        padding: 1.25rem 1rem;
    }
    
    .logo-section h1 {
        font-size: 18px;
    }
    
    .input-wrap input {
        padding: 11px 11px 11px 38px;
        font-size: 13px;
    }
    
    .btn-login {
        padding: 11px;
        font-size: 14px;
    }
}

@media (min-height: 600px) and (max-height: 700px) {
    .login-box {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-height: 600px) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .login-box {
        padding: 1.25rem 1.5rem;
    }
    
    .logo-section {
        margin-bottom: 1rem;
    }
    
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    
    .footer-text {
        margin-top: 1rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    body {
        padding: 0.5rem;
    }
    
    .login-box {
        padding: 1rem 1.25rem;
    }
    
    .logo-section {
        margin-bottom: 0.75rem;
    }
    
    .logo-circle {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .logo-circle img {
        padding: 5px;
    }
    
    .logo-section h1 {
        font-size: 18px;
    }
    
    .login-form {
        gap: 0.75rem;
    }
    
    .footer-text {
        margin-top: 0.75rem;
        font-size: 12px;
    }
}
