﻿body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: url("../img/background.png") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    animation: fadeIn 0.7s ease;
    position: relative;
}

.form-section {
    flex: 1 1 60%;
    padding: 60px 40px;
    position: relative;
    background: white;
    z-index: 2;
}

    .form-section::after {
        content: "";
        position: absolute;
        top: 0;
        right: -80px;
        width: 160px;
        height: 100%;
        background: white;
        border-radius: 50% / 100%;
        z-index: 1;
    }

.form-box {
    max-width: 400px;
    margin: auto;
    position: relative;
    z-index: 3;
}

    .form-box h2 {
        font-size: 28px;
        font-weight: 600;
        margin-bottom: 30px;
        color: #333;
        text-align: center;
    }

.form-label {
    font-weight: 600;
    color: #444;
}

.form-control {
    border-radius: 10px;
    font-size: 15px;
    padding: 12px;
}

    .form-control:focus {
        border-color: #764ba2;
        box-shadow: 0 0 0 0.15rem rgba(118, 75, 162, 0.25);
    }

.form-check-label {
    font-size: 14px;
}

.forgot-link {
    font-size: 14px;
    text-decoration: none;
    color: #764ba2;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #5a3b8a;
    }

.btn-login {
    background: linear-gradient(to right, #764ba2, #667eea);
    color: white;
    font-weight: 600;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    border: none;
    box-shadow: 0 3px 8px rgba(118, 75, 162, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

    .btn-login:hover {
        background: linear-gradient(to right, #5b3a99, #4b64d2);
        transform: translateY(-1px);
    }

.image-section {
    flex: 1 1 40%;
    background-image: url("../img/imgLogin.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    position: relative;
    z-index: 1;
}

.validation-alert {
    border-radius: 12px;
    border-left: 6px solid #dc3545;
    background-color: #fff5f5;
    color: #721c24;
    animation: fadeIn 0.5s ease;
}

    .validation-alert h5 {
        font-weight: 600;
        color: #dc3545;
    }

.external-login {
    text-align: center;
    margin-top: 24px;
}

.external-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: #555;
    font-size: 15px;
}

    .external-title::before, .external-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #ccc;
    }

.external-login-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    outline: none;
}

    .icon-button:hover {
        transform: scale(1.15);
        filter: brightness(1.2);
    }

.provider-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    mix-blend-mode: multiply;
    filter: brightness(1.05) contrast(1.1);
}

.icon-button:hover .provider-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-danger, .field-validation-error {
    display: block;
    margin-top: 30px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #d9534f;
    text-align: left;
}

input.input-validation-error {
    border: 1.8px solid #d9534f !important;
    background-color: #fff8f8;
}

    input.input-validation-error:focus {
        border-color: #d9534f;
        box-shadow: 0 0 0 0.15rem rgba(217, 83, 79, 0.25);
    }

@media (max-width: 768px) {

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        height: 100%;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .login-card {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        background: #ffffff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        overflow: hidden !important;
    }

    .image-section {
        display: none !important;
    }

    .form-section {
        width: 100%;
        flex: 1;
        padding: 40px 24px 40px 24px;
        -webkit-overflow-scrolling: touch;
    }

    .form-box {
        width: 100%;
        max-width: 420px;
    }

        .form-box h2 {
            font-size: 24px;
            margin-bottom: 24px;
            text-align: center;
        }

    .form-control {
        font-size: 17px;
        padding: 14px;
        border-radius: 12px;
        margin-bottom: 18px;
    }

    .btn-login {
        padding: 14px;
        font-size: 17px;
        border-radius: 12px;
    }

    .external-login {
        margin-top: 40px;
        width: 100%;
    }

    .external-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

        .external-title::before,
        .external-title::after {
            background: #ccc;
        }

    .external-login-icons {
        gap: 24px;
    }

    .provider-icon {
        width: 56px;
        height: 56px;
    }

    .validation-alert {
        font-size: 15px;
        margin-bottom: 20px;
        padding: 10px 14px;
    }

    .text-danger,
    .field-validation-error {
        font-size: 15px;
        margin-top: 4px;
        margin-bottom: 12px;
    }
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 40px 0 30px;
    text-align: center;
}

    .login-header h2 {
        font-size: 26px;
        font-weight: 600;
        color: #222;
        margin: 0;
        line-height: 1.2;
    }

.login-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.25s ease;
}

    .login-logo:hover {
        transform: scale(1.07);
    }

@media (max-width: 768px) {

    .login-logo {
        height: 36px;
    }

    .login-header h2 {
        font-size: 22px;
    }
}

.forgot-password-container {
    background: #ffffffee;
    border-radius: 20px;
    padding: 50px 60px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
    text-align: center;
}

.forgot-password-header {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.forgot-password-subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 32px;
}

.forgot-password-container .form-control {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    border: 1.6px solid #ccc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .forgot-password-container .form-control:focus {
        border-color: #764ba2;
        box-shadow: 0 0 0 0.15rem rgba(118, 75, 162, 0.25);
        outline: none;
    }

.forgot-password-container .form-label {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 6px;
    text-align: left;
}

.forgot-password-container .text-danger,
.forgot-password-container .field-validation-error {
    display: block;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #d9534f;
    text-align: left;
}

.forgot-password-container .validation-alert {
    border-radius: 10px;
    border-left: 5px solid #dc3545;
    background-color: #fff5f5;
    color: #721c24;
    font-size: 14px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.btn-reset-password {
    background: linear-gradient(to right, #764ba2, #667eea);
    color: #fff;
    font-weight: 600;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(118, 75, 162, 0.3);
}

    .btn-reset-password:hover {
        background: linear-gradient(to right, #5b3a99, #4b64d2);
        transform: translateY(-1px);
    }

@media (max-width: 768px) {
    .forgot-password-container {
        width: 100%;
        max-width: 100%;
        padding: 40px 28px;
        border-radius: 0;
        box-shadow: none;
    }

    .forgot-password-header {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .forgot-password-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .forgot-password-container .form-control {
        font-size: 17px;
        padding: 14px;
    }

    .btn-reset-password {
        font-size: 17px;
        padding: 14px;
    }
}

.confirmation-container {
    background: #ffffffee;
    border-radius: 20px;
    padding: 60px 70px;
    width: 100%;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
}

.confirmation-header {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}

.confirmation-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 400px;
}

@media (max-width: 768px) {
    .confirmation-container {
        width: 100%;
        max-width: 100%;
        padding: 50px 28px;
        border-radius: 0;
        box-shadow: none;
        background: #ffffffee;
    }

    .confirmation-header {
        font-size: 24px;
    }

    .confirmation-text {
        font-size: 15px;
        max-width: 90%;
    }
}

.reset-password-container {
    background: #ffffffee;
    border-radius: 20px;
    padding: 50px 60px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
    text-align: center;
}

.reset-password-header {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.reset-password-subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 32px;
}

.reset-password-container .form-control {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    border: 1.6px solid #ccc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .reset-password-container .form-control:focus {
        border-color: #764ba2;
        box-shadow: 0 0 0 0.15rem rgba(118, 75, 162, 0.25);
        outline: none;
    }

.reset-password-container .form-label {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.reset-password-container .text-danger {
    font-size: 14px;
    margin-top: 4px;
    text-align: left;
    font-weight: 500;
}

.btn-reset-submit {
    background: linear-gradient(to right, #764ba2, #667eea);
    color: #fff;
    font-weight: 600;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(118, 75, 162, 0.3);
}

    .btn-reset-submit:hover {
        background: linear-gradient(to right, #5b3a99, #4b64d2);
        transform: translateY(-1px);
    }

@media (max-width: 768px) {

    .reset-password-container {
        width: 100%;
        max-width: 100%;
        padding: 40px 28px;
        border-radius: 0;
        box-shadow: none;
    }

    .reset-password-header {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .reset-password-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .reset-password-container .form-control {
        font-size: 17px;
        padding: 14px;
    }

    .btn-reset-submit {
        font-size: 17px;
        padding: 14px;
    }
}

.reset-confirm-container {
    background: #ffffffee;
    border-radius: 20px;
    padding: 50px 60px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.6s ease;
}

.reset-confirm-header {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}

.reset-confirm-text {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

    .reset-confirm-text a {
        color: #764ba2;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .reset-confirm-text a:hover {
            color: #4b64d2;
            text-decoration: underline;
        }

@media (max-width: 768px) {

    .reset-confirm-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 40px 28px;
        box-shadow: none;
    }

    .reset-confirm-header {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .reset-confirm-text {
        font-size: 15px;
    }
}
