/* Estilos para páginas de autenticación - Usando colores y fuentes de HazTodo */

/* Variables CSS consistentes con homestyles.css */
:root {
    --primary-color: #dc3545;
    --secondary-color: #c82333;
    --accent-color: #ff6b7a;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

.main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Graphik, Arial, sans-serif;
}

.auth {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    min-height: 600px;
}

.auth__form {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth__info {
    flex: 1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth__box {
    width: 100%;
    max-width: 400px;
}

.brand {
    display: block;
    margin-bottom: 40px;
    text-align: center;
}

.brand img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.form__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    font-family: Graphik, Arial, sans-serif;
}

/* Social Auth */
.social-auth {
    margin-bottom: 30px;
}

.social-auth--big-buttons {
    width: 100%;
}

.auth-clients {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.auth-clients li {
    flex: 1;
}

.auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: Graphik, Arial, sans-serif;
}

.auth-link:hover {
    border-color: var(--primary-color);
    background: var(--light-gray);
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.auth-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.auth-icon.google {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23db4437' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%234285f4' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23fbbc05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23ea4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
}

.auth-link__text {
    font-size: 14px;
    font-weight: 500;
}

/* Form Styles */
.form__group {
    margin-bottom: 25px;
}

.form__group:last-child {
    margin-bottom: 0;
}

.input--icon {
    position: relative;
}

.input--icon.input--email::before {
    content: "✉";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 16px;
}

.input--icon.input--pwd::before {
    content: "🔒";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 16px;
}

.input--icon.input--user::before {
    content: "👤";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 16px;
}

.input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: Graphik, Arial, sans-serif;
    color: var(--text-dark);
}

.input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.input::placeholder {
    color: var(--text-light);
}

.help-block {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.form__group p {
    margin: 0;
    text-align: right;
    margin-top: 10px;
}

.form__group a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: Graphik, Arial, sans-serif;
}

.form__group a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Form Actions */
.form-actions {
    margin: 40px 0 30px 0;
}

.btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: Graphik, Arial, sans-serif;
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), #a71e2a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.m-icon-swapright {
    font-size: 18px;
}

.m-icon-white {
    color: white;
}

/* Create Account */
.create-account {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.create-account p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    font-family: Graphik, Arial, sans-serif;
}

.create-account a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-family: Graphik, Arial, sans-serif;
}

.create-account a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Auth Info Section */
.auth__box--login-txt {
    text-align: center;
}

.auth__box--login-txt img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 32px auto;
    display: block;
}

.title2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: Graphik, Arial, sans-serif;
}

.auth__box--login-txt p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: Graphik, Arial, sans-serif;
}

.toggle {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
    font-family: Graphik, Arial, sans-serif;
}

.toggle:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.toggle__content {
    display: none;
    text-align: left;
}

.listcheck {
    list-style: none;
    padding: 0;
    margin: 0;
}

.listcheck__item {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 14px;
    position: relative;
    padding-left: 25px;
    font-family: Graphik, Arial, sans-serif;
}

.listcheck__item--ok::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth {
        flex-direction: column;
        margin: 10px;
    }
    
    .auth__form,
    .auth__info {
        padding: 40px 30px;
    }
    
    .auth__info {
        order: -1;
    }
    
    .title2 {
        font-size: 24px;
    }
    
    .form__title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .auth__form,
    .auth__info {
        padding: 30px 20px;
    }
    
    .auth-clients {
        flex-direction: column;
    }
    
    .auth-link {
        justify-content: flex-start;
    }
}
