@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fefcea;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Blurred Background */
.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/backgroundWebsite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px); /* Reduced blur intensity */
    z-index: -1;
}

.background-blur::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.3;
}

/* Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 1;
    flex-grow: 1; /* Allow container to grow and push footer down */
    margin-bottom: 2rem; /* Added margin for spacing */
}

/* Card */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 440px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    border: 1px solid rgba(163, 92, 0, 0.1);
}

/* Logo Container */
.logo-container {
    margin-bottom: 1.5rem;
}

.logo-image {
    width: 130px; 
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(163, 92, 0, 0.2);
    border: 4px solid #a35c00;
    background: #fff;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Logo */
.logo {
    color: #a35c00;
    font-size: 2.4rem; /* Slightly larger */
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 800;
}

/* Subtitle */
.subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Input group */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Labels */
label {
    display: block;
    font-size: 0.92rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Inputs */
input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

input:focus {
    border-color: #a35c00;
    box-shadow: 0 0 0 4px rgba(163, 92, 0, 0.1);
}

input.error-input {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1.1rem;
    padding: 8px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #a35c00;
}

/* Error messages */
.error {
    display: block;
    font-size: 0.82rem;
    color: #e74c3c;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

/* Forgot link */
.forgot {
    display: block;
    text-align: right;
    font-size: 0.88rem;
    color: #d48100;
    margin: -8px 0 24px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot:hover {
    color: #a35c00;
    text-decoration: underline;
}

/* Button */
.btn {
    width: 100%;
    background: linear-gradient(135deg, #a35c00, #d48100);
    color: #fff;
    padding: 15px;
    font-size: 1.05rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(163, 92, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(163, 92, 0, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.admin-notice {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 2rem;
    font-style: italic;
    line-height: 1.4;
}

/* Footer */
.footer-text {
    margin-top: 24px;
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}

/* Page Footer */
.page-footer {
    position: relative; 
    bottom: auto; 
    left: auto; 
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border-top: 1px solid rgba(163, 92, 0, 0.1);
    margin-top: 2rem; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 0.92rem;
    font-weight: 600;
}

.footer-contact i {
    color: #a35c00;
    font-size: 1.1rem;
}


.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #a35c00, #d48100);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(163, 92, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(163, 92, 0, 0.4);
}

.social-link i {
    font-size: 1.2rem;
}

.footer-emails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 0.88rem;
    font-weight: 500;
}

.email-item i {
    color: #a35c00;
    font-size: 0.9rem;
}

/* Animation for error shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}

.shake {
    animation: shake 0.4s;
}

/* Fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forgot Password Modal */
.forgot-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.forgot-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

.forgot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.forgot-modal-header h2 {
    font-size: 1.4rem;
    color: #a35c00;
    font-weight: 700;
}

.forgot-modal-close {
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    line-height: 1;
}

.forgot-modal-close:hover {
    color: #a35c00;
}

.forgot-info {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-style: italic;
}

.forgot-modal .form-group {
    margin-bottom: 1.5rem;
}

.forgot-modal input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
}

.forgot-modal input:focus {
    border-color: #a35c00;
    box-shadow: 0 0 0 4px rgba(163, 92, 0, 0.1);
}

.forgot-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn {
    background: #e0e0e0;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #d0d0d0;
}

.submit-btn {
    background: linear-gradient(135deg, #a35c00, #d48100);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(163, 92, 0, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(163, 92, 0, 0.3);
}

/* Tablet Responsive */
@media (max-width: 900px) {
    body {
        padding-bottom: 140px;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-emails {
        align-items: center;
    }
}


@media (max-width: 768px) {
    body {
        padding-bottom: 1px; 
        padding-top: 40px;
    }

    .login-card {
        padding: 2.5rem 2rem;
        margin-top: 20px;
        margin-bottom: 1rem; 
    }

    .logo-image {
        width: 100px; 
        height: 100px;
    }

    .logo {
        font-size: 2.2rem; 
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .footer-contact,
    .footer-emails {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .footer-emails {
        gap: 6px;
    }


}

@media (max-width: 600px) {
    body {
        padding-bottom: 1px; 
        padding-top: 40px;
    }

    .login-card {
        padding: 2.2rem 1.8rem;
        border-radius: 18px;
        margin-top: 15px;
        margin-bottom: 1rem; 
    }

    .logo-image {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

    .logo {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.92rem;
    }

    input {
        padding: 13px 15px; 
        font-size: 0.92rem;
    }

    .btn {
        padding: 14px; 
        font-size: 1rem;
    }

    .footer-contact,
    .email-item {
        font-size: 0.85rem;
    }

    .social-link {
        width: 40px; 
        height: 40px;
    }

    .social-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 1px; 
        padding-top: 45px;
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin-top: 10px;
        margin-bottom: 1rem;
    }

    .logo-image {
        width: 120px;
        height: 120px;
    }

    .logo {
        font-size: 1.9rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.8rem;
    }

    label {
        font-size: 0.9rem;
    }

    input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 13px;
        font-size: 0.98rem;
    }


    .footer-content {
        gap: 1rem;
    }

    .footer-contact {
        font-size: 0.83rem;
    }

    .footer-contact i {
        font-size: 1rem;
    }

    .email-item {
        font-size: 0.8rem;
    }

    .email-item i {
        font-size: 0.82rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-link i {
        font-size: 1.05rem;
    }

    .forgot-modal-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 360px) {
    body {
        padding-bottom: 1px; 
        padding-top: 50px;
    }

    .login-card {
        padding: 1.8rem 1.3rem;
        margin-top: 5px;
        margin-bottom: 1rem; 
    }

    .logo-image {
        width: 120px;
        height: 120px;
    }

    .logo {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.88rem;
    }

    input {
        padding: 11px 13px;
        font-size: 0.88rem;
    }

    .btn {
        padding: 12px;
        font-size: 0.95rem;
    }


    .footer-contact {
        font-size: 0.8rem;
    }

    .footer-contact i {
        font-size: 0.95rem;
    }

    .email-item {
        font-size: 0.78rem;
    }

    .email-item i {
        font-size: 0.8rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link i {
        font-size: 1rem;
    }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding-bottom: 20px; 
        padding-top: 15px;
        align-items: flex-start;
    }

    .login-card {
        padding: 1.5rem 2rem;
        margin: 10px 0;
        margin-bottom: 1rem; 
    }


    .logo-image {
        width: 70px;
        height: 70px;
    }

    .logo {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .subtitle {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .input-group {
        margin-bottom: 12px;
    }


    .footer-content {
        flex-direction: row;
        gap: 1rem;
    }
}