﻿/* Layout */
.login-container {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #fdfbfb, #ebedee);
}

.visual-section {
    flex: 1;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    padding: 20px;
}

/* Card */
.login-card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    transition: all 0.3s ease;
}

    .login-card:hover {
        transform: scale(1.01);
    }

/* Text Styles */
.brand-welcome {
    font-size: 38px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.brand-name {
    color: #3f51b5;
}

.brand-tagline {
    font-size: 17px;
    margin: 12px 0 30px;
    color: #7f8c8d;
}

.login-title {
    font-size: 26px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Inputs */
.input-box {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .input-box:focus {
        border-color: #3f51b5;
        box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
        outline: none;
    }

/* Button */
.login-button {
    width: 100%;
    background-color: #3f51b5;
    color: white;
    padding: 13px 0;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

    .login-button:hover {
        background-color: #303f9f;
        transform: translateY(-1px);
    }

    .login-button:active {
        transform: scale(0.98);
    }

/* Validation / Message */
.message-label {
    display: block;
    margin-bottom: 15px;
    color: #e53935;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.validation-summary-errors {
    color: #d32f2f;
    font-size: 13px;
    background: #fff3f3;
    border: 1px solid #f5c2c2;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Footer Links */
.form-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.link-forgot,
.signup-link {
    color: #3f51b5;
    text-decoration: none;
    transition: color 0.2s;
}

    .link-forgot:hover,
    .signup-link:hover {
        color: #283593;
    }

/* Divider */
.divider {
    margin: 25px 0;
    position: relative;
    text-align: center;
}

    .divider span {
        background: #fff;
        padding: 0 12px;
        color: #aaa;
        font-size: 14px;
        z-index: 1;
        position: relative;
    }

    .divider::before {
        content: "";
        position: absolute;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #ddd;
        left: 0;
        transform: translateY(-50%);
        z-index: 0;
    }

/* Image */
.left-panel img,
.login-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 20px auto;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .left-panel img:hover,
    .login-image:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

.show-password {
    margin-top: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .show-password input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }


/* Responsive */
@media (max-width: 768px) {

    .left-panel img,
    .login-image {
        display: none;
    }

    .login-container {
        flex-direction: column;
    }

    .visual-section {
        display: none;
    }

    .form-section {
        width: 100%;
    }

    .login-card {
        margin-top: 30px;
    }
}
