﻿/* Custom CSS for Dental Clinic Login */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #d5deef;
    font-family: 'Heebo', sans-serif;
    height: 100vh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/*Login card contiene al formulario y la parte azul del login y logo*/
.login-card {
    display: flex;
    width: 100%;
    max-width: 800px; /*747*/
    height: 500px; /*460*/
    background: white;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Azul a la izquierda */
.blue-section {
    flex: 1;
    background: #628ecb;
    border-radius: 0px 90px 90px 0px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formulario a la derecha */
.form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*-----*/


.clinic-info {
    text-align: center;
    color: white;
    margin-top: 40px;
}

.dental-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
    border-radius: 48%;
    object-fit: cover;
}

.clinic-name {
    font-family: 'Courgette', cursive;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}


.login-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #628ecb;
    text-align: center;
    margin-bottom: 40px;
}

.textlabel {
    font-family: 'Heebo', sans-serif;
    text-align: left;
    font-size: 18px;
    color: #628ecb;
    font-weight: 525;
}


.login-form {
    width: 100%;
}

.custom-input {
    height: 32px;
    background-color: #f0f3fa;
    border: 1px solid #e0e6f0;
    border-radius: 5px;
    font-size: 18px;
    color: #8aaee0;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

    .custom-input:focus {
        background-color: #f0f3fa;
        border-color: #628ecb;
        box-shadow: 0 0 0 0.2rem rgba(98, 142, 203, 0.25);
        color: #628ecb;
    }

    .custom-input::placeholder {
        color: #8aaee0;
        font-size: 10px;
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: 22px;
    height: 17px;
    background-color: #f0f3fa;
    border: 1px solid #e0e6f0;
    border-radius: 5px;
}

    .custom-checkbox:checked {
        background-color: #628ecb;
        border-color: #628ecb;
    }

.custom-label {
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #8aaee0;
    margin-bottom: 0;
    white-space: nowrap;
}

.custom-btn {
    height: 42px;
    background-color: #628ecb;
    border: none;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

    .custom-btn:hover {
        background-color: #5680bd;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(98, 142, 203, 0.3);
    }

    .custom-btn:active {
        transform: translateY(0);
    }

.forgot-password {
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #395886;
    text-decoration: none;
    transition: color 0.3s ease;
    
}

.forgot {
    text-align: center;
}

    .forgot-password:hover {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    }

/* Responsive Design */
@media (max-width: 800px) {
    .login-card {
        flex-direction: column; /* ¡Muy importante! Apilar azul y formulario */
        height: auto;
        min-height: auto;
    }

    .blue-section {
        width: 100%;
        height: auto;
        padding: 30px 20px;
        border-radius: 0px 20px 0 0;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .form-section {
        width: 100%;
        padding: 30px 20px;
    }


    .clinic-info {
        margin-top: 0;
    }

    .clinic-name {
        font-size: 20px;
    }

    .dental-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .login-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .form-section {
        padding: 0 20px 30px;
    }

    .clinic-name {
        font-size: 18px;
    }

    .login-title {
        font-size: 20px;
    }
}

/* Animation for smooth loading */
.login-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.custom-input:focus,
.custom-checkbox:focus,
.custom-btn:focus,
.forgot-password:focus {
    outline: 2px solid #628ecb;
    outline-offset: 2px;
}


