@import 'base/variables.css';

:root {
    --primary-color: var(--color-primary);
    --primary-hover: #0a2540;
    --primary-light: #254b76;
    --dark-bg: var(--color-dark);
    --darker-bg: #282a38;
    --light-bg: var(--color-light);
    --text-color: var(--color-text-main);
    --text-light: var(--color-text-light);
    --text-muted: var(--color-text-muted);
    --border-radius: var(--border-radius);
    --box-shadow: var(--shadow);
    --box-shadow-hover: var(--shadow-lg);
    --transition: var(--transition);
    --error-color: var(--color-danger);
    --success-color: var(--sentiment-very-positive);
    --warning-color: var(--sentiment-neutral);
    --info-color: var(--color-secondary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos para el fondo */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-color);
}

/* Fondo de onda con SVG - versión mejorada y más vistosa */
.wave-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2321b2a3' fill-opacity='0.3' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,229.3C960,213,1056,171,1152,165.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3Cpath fill='%23F8A01E' fill-opacity='0.4' d='M0,256L48,261.3C96,267,192,277,288,261.3C384,245,480,203,576,197.3C672,192,768,224,864,218.7C960,213,1056,171,1152,176C1248,181,1344,235,1392,261.3L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3Cpath fill='%230b2a4a' fill-opacity='0.2' d='M0,288L48,272C96,256,192,224,288,218.7C384,213,480,235,576,245.3C672,256,768,256,864,234.7C960,213,1056,171,1152,176C1248,181,1344,235,1392,261.3L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    animation: wave-animation 15s linear infinite alternate;
}

@keyframes wave-animation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* O puedes usar esta versin alternativa con un gradiente */
.wave-bg-alt {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 134, 39, 0.2), transparent);
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: #fff;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
}

    .auth-container:hover {
        box-shadow: var(--box-shadow-hover);
    }

.register-container {
    max-width: 530px;
}

.form-header {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    max-width: 200px;
    height: auto;
}

.form-main {
    background-color: var(--dark-bg);
    padding: 35px;
    color: var(--text-light);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
    text-align: center;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

.validation-summary {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

    .validation-summary ul {
        list-style-type: none;
        padding-left: 10px;
        margin-bottom: 0;
    }

        .validation-summary ul li {
            margin-bottom: 5px;
        }

            .validation-summary ul li:last-child {
                margin-bottom: 0;
            }

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
}

.half {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
}

.input-with-icon {
    position: relative;
}

.icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    font-size: 15px;
    background-color: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-light);
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(255, 134, 39, 0.25);
    }

.input-group {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    z-index: 1;
    padding: 5px;
    transition: var(--transition);
}

    .password-toggle:hover {
        color: var(--text-light);
    }

.remember-label {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

    .remember-label input {
        margin-right: 8px;
        cursor: pointer;
    }

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--color-secondary);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    text-align: center;
    display: block;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
    }

.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
}

    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .btn-secondary i {
        margin-right: 8px;
    }

.alert-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

    .alert-message i {
        margin-right: 10px;
        font-size: 16px;
    }

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.form-footer {
    background-color: #404040;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.forgot-password {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    margin-left: auto;
}

    .forgot-password:hover {
        color: var(--primary-color);
    }

    .forgot-password i {
        margin-right: 8px;
        background-color: #505050;
        color: #888;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        transition: var(--transition);
    }

    .forgot-password:hover i {
        background-color: var(--primary-color);
        color: var(--text-light);
    }

.accent-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    .accent-link:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }

.help-text {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

.help-text i {
    margin-right: 8px;
    font-size: 14px;
    color: #888;
}

/* Animation for form appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    height: 5px;
    border-radius: 3px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.strength-weak {
    width: 25%;
    background-color: var(--error-color);
}

.strength-medium {
    width: 50%;
    background-color: var(--warning-color);
}

.strength-strong {
    width: 75%;
    background-color: var(--info-color);
}

.strength-very-strong {
    width: 100%;
    background-color: var(--success-color);
}

.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
}

/* Checkbox styling */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-icon {
    min-width: 18px;
    height: 18px;
    background-color: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-checkbox:hover .checkbox-icon {
    border-color: var(--primary-color);
}

.custom-checkbox input:checked ~ .checkbox-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-icon:after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: white;
    font-size: 10px;
    display: none;
}

.custom-checkbox input:checked ~ .checkbox-icon:after {
    display: block;
}

.checkbox-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Form steps navigation */
.form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--darker-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.step-item.active .step-number {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.step-item.completed .step-number {
    background-color: var(--success-color);
    color: var(--text-light);
}

.step-name {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.step-item.active .step-name {
    color: var(--text-light);
}

.step-connector {
    flex: 1;
    height: 2px;
    background-color: var(--darker-bg);
    margin-top: 15px;
}

.step-item.completed + .step-connector {
    background-color: var(--success-color);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .form-main {
        padding: 25px 20px;
    }

    .form-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .form-title {
        font-size: 20px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px;
        font-size: 15px;
    }

    .form-control {
        padding: 12px 15px 12px 40px;
        font-size: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .half {
        width: 100%;
    }

    .logo {
        max-width: 150px;
    }

    .wave-bg {
        height: 100px;
    }
}

/* Dark mode support */
/*@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .wave-bg {
        opacity: 0.3;
    }

    .form-header {
        background-color: #222;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .auth-container {
        background-color: #222;
    }

    .form-main {
        background-color: #1a1a2e;
    }

    .form-footer {
        background-color: #16213e;
    }
}*/
