
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}


body {
    
    position: relative;
    color: #fff;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Formulario */
.form-wrapper {
    max-width: 460px;
    width: 100%;
    
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    position: relative;
    font-family: inherit;
}


.form-wrapper .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.form-wrapper .logo-icon {
    width: 35px;
    height: 35px;
    background-color: #d60000;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}
.form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}
.form-wrapper p.subtitle {
    color: #f0f0f0;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 1rem;
}
.tabs button {
    flex: 1;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.2rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.tabs button.active {
    background-color: #fff;
    color: #101922;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.tabs button.inactive {
    background-color: transparent;
    color: #f0f0f0;
    border: 1px solid rgba(255,255,255,0.1);
}
.tabs button.inactive:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Formularios */
form {
    opacity: 0;
    transform: translateX(50px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease;
    margin-bottom: 0.8rem;
    font-family: inherit;
}
form.active {
    opacity: 1;
    transform: translateX(0);
    max-height: 1000px;
}

form input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 0.1rem;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #101922;
    font-size: 0.9rem;
    font-family: inherit;
}
form input:focus {
    outline: none;
    border-color: black;
}

form button {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #333333, #000000);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.6s ease;
    font-family: inherit;
    background-size: 200% 200%;
    background-position: center;
}

form button:hover {
    background: linear-gradient(135deg, #333333 0%, #d60000 50%, #000000 100%);
    background-size: 200% 200%;
    animation: expandBlue 0.6s ease forwards;
}

@keyframes expandBlue {
    from { background-position: center; }
    to { background-position: left; }
}

.toggle-link {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6); 
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    transition: color 0.3s ease;
}

.toggle-link:hover { 
    color: #ffaaaa; 
}

.error-msg {
    color: #ff4d4d;
    margin-bottom: 0.8rem;
    font-weight: bold;
    font-family: inherit;
    font-size: 0.8rem;
}


#login-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: none;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: inherit;
}
.spinner {
    margin: 0 auto 0.8rem auto;
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d60000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#login-status p {
    margin: 0.3rem 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    font-family: inherit;
}



