:root {
    --primary: #7c3aed;
    --secondary: #0ea5e9;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --bg-dark: #0f172a;
}

input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

input::-webkit-password-toggle-button {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.main-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    max-height: 620px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-section {
    flex: 1;
    padding: clamp(20px, 4vh, 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
    z-index: 10;
}

.brand-header {
    margin-bottom: clamp(10px, 2.5vh, 20px);
}

.brand-header h1 {
    color: white;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 800;
    display: flex;
    align-items: center;
}

.brand-header .dot {
    color: #38bdf8;
    margin: 0 4px;
}

.brand-header .tcs {
    font-weight: 200;
    opacity: 0.85;
}

.brand-header p {
    color: #0ea5e9;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 4px;
}

.avatar {
    width: clamp(30px, 5vh, 45px);
    height: clamp(30px, 5vh, 45px);
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: clamp(10px, 2vh, 15px);
}

h2 {
    color: white;
    font-size: clamp(1.1rem, 2.8vh, 1.5rem);
}

.subtitle {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: clamp(15px, 2.5vh, 25px);
}

.input-group {
    position: relative;
    margin-bottom: clamp(10px, 1.5vh, 15px);
}

.input-group i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
}

.input-group i.left {
    left: 15px;
}

.input-group i.right {
    right: 15px;
    cursor: pointer;
    color: #64748b;
}

input {
    width: 100%;
    padding: clamp(10px, 1.5vh, 14px) 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
}

button {
    width: 100%;
    padding: clamp(10px, 1.5vh, 14px);
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Estilo del error */
.error-message {
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 0.8rem;
}

.register-link {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.register-link a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #7c3aed;
}

.visual-section {
    flex: 1.2;
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide-bg.active {
    opacity: 1;
}

.visual-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.help-button {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 999;
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-content {
    width: 90%;
    max-width: 700px;
    position: relative;
}

.video-content video {
    width: 100%;
    border-radius: 12px;
}

.close-video {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .visual-section {
        display: none;
    }

    .main-wrapper {
        max-width: 400px;
        max-height: 580px;
    }
}

@media (max-height: 550px) {
    .avatar {
        display: none;
    }

    .brand-header p {
        display: none;
    }

    .main-wrapper {
        max-height: 98vh;
    }

    .subtitle {
        margin-bottom: 10px;
    }
}