/* Login Page Interactive Styles */

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100vh;
    background: white;
    align-items: center;
}

/* Left Side - Image & Messages */
.login-left {
    background: linear-gradient(135deg, #1e8f4d 0%, #0f5a2f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Add dark overlay to darken the background image */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.login-left::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.login-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.login-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.messages-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.message-box {
    background: rgba(0, 0, 0, 0.75);
    border-left: 5px solid #1e8f4d;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    line-height: 1.8;
    padding: 30px;
    backdrop-filter: blur(15px);
    animation: slideIn 0.6s ease-out;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.message-box:hover {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 20px 50px rgba(30, 143, 77, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Right Side - Login Form */
.login-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #fff;
}

.login-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: logoScale 0.8s ease-out;
}

@keyframes logoScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-logo-box img {
    width: 210px;
    height: auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 5px;
}

.logo-link:hover {
    transform: scale(1.05);
    filter: brightness(0.95);
}

.logo-link:active {
    transform: scale(0.98);
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e8f4d;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #1e8f4d;
    box-shadow: 0 0 0 3px rgba(30, 143, 77, 0.1);
}

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

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
}

.remember-forgot a {
    color: #1e8f4d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.remember-forgot a:hover {
    color: #0f5a2f;
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e8f4d 0%, #0f5a2f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 143, 77, 0.3);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 143, 77, 0.4);
}

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

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #1e8f4d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #0f5a2f;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }

    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .login-left {
        display: none;
    }

    .login-image-placeholder {
        display: none;
    }

    .messages-container {
        display: none;
    }

    .message-box {
        display: none;
    }

    .login-right {
        min-height: auto;
        height: 100%;
        padding: 20px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 90%;
    }

    .login-form-wrapper {
        max-width: 100%;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .login-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .login-logo-box {
        margin-bottom: 16px;
    }

    .login-logo-box img {
        max-width: 190px;
        height: auto;
    }

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

    .form-input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .form-label {
        font-size: 13px;
    }

    .login-button {
        padding: 10px;
        font-size: 14px;
    }

    .register-link {
        font-size: 12px;
        margin-top: 12px;
    }
}
