* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100vh;
}

body {
    font-family: "Nunito Sans", sans-serif;
    background-color: #fff1c2;
    margin: 0;
    padding: 0;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.login-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    margin: auto;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    position: relative;
}

.login-body {
    padding: 20px 40px;
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Contenedor blanco para el formulario de login */
#loginScreen .login-body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#loginScreen .phone-section,
#loginScreen .info-message,
#loginScreen .login-form,
#loginScreen .error-message,
#loginScreen .success-message {
    position: relative;
    z-index: 1;
}

/* Wrapper blanco para todo el contenido del login */
#loginScreen .phone-section ~ * {
    margin-top: 0;
}

.info-message {
    background-color: #d7f4e8;
    border: 1px solid #d7f4e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    flex-shrink: 0;
    opacity: 1;
}

.info-icon {
    color: #16a34a;
    font-weight: bold;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.info-message p {
    color: #15803d;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 12px;
}

.logo-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    margin-right: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.version {
    background-color: #e0e0e0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.version-bottom {
    position: absolute;
    bottom: 10px;
    left: 20px;
    background-color: #e0e0e0;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.phone-section {
    margin-bottom: 16px;
    flex-shrink: 0;
}

#loginScreen .phone-section {
    margin-bottom: 0;
}

.phone-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    margin-top: 0;
}

#loginScreen .phone-section h2 {
    color: #1a2732;
    margin-bottom: 20px;
}

.subtitle {
    color: #888;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 400;
}

.login-form {
    flex-shrink: 0;
}

/* Fondo blanco que envuelve todo el contenido del login */
#loginScreen .btn-back {
    margin-bottom: 16px;
    margin-left: 0;
    margin-right: 0;
}

#loginScreen .phone-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 20px 0 20px;
    margin: 0 -20px 0 -20px;
    border-radius: 12px 12px 0 0;
    backdrop-filter: blur(10px);
}

#loginScreen .info-message {
    background-color: #d7f4e8;
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 0;
}

#loginScreen .error-message,
#loginScreen .success-message {
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 0;
}

#loginScreen .login-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    margin: 0 -20px;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(10px);
}

.phone-input-container {
    display: flex;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
    background: #ffffff;
}

.phone-input-container:focus-within {
    border-color: #3b82f6;
}

.country-selector {
    background-color: #f5f5f5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #ddd;
    cursor: pointer;
    min-width: 100px;
}

.flag {
    font-size: 18px;
}

.country-code {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    margin-left: auto;
}

#phoneNumber {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    background: #ffffff;
}

#phoneNumber::placeholder {
    color: #999;
}

.submit-btn {
    width: 100%;
    background-color: #1a2732;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0;
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #0f1a21;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.register-link {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.register-link p {
    margin: 0;
}

.register-link a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Pantalla de Bienvenida */
.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
    width: 100%;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2732;
    margin: 0;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Botones de Acción */
.btn-primary-action,
.btn-secondary-action {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    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: "Nunito Sans", sans-serif;
}

.btn-primary-action {
    background: linear-gradient(135deg, #1a2732 0%, #394C60 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 39, 50, 0.3);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 39, 50, 0.4);
}

.btn-primary-action:active {
    transform: translateY(0);
}

.btn-secondary-action {
    background: white;
    color: #1a2732;
    border: 2px solid #1a2732;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary-action:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary-action:active {
    transform: translateY(0);
}

/* Botón Volver */
.btn-back {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    align-self: flex-start;
    font-family: "Nunito Sans", sans-serif;
}

.btn-back:hover {
    background: #f5f5f5;
    color: #333;
}

.btn-back svg {
    transition: transform 0.2s ease;
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

/* Contenido de Registro */
.register-content {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
}

/* Responsive design - Tablets y pantallas medianas */
@media (max-width: 768px) {
    body {
        overflow: hidden;
        padding: 0;
    }
    
    .login-container {
        padding: 0;
        max-width: 100%;
        overflow: hidden;
        height: 100vh;
    }
    
    .login-card {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        background: transparent;
        box-shadow: none;
        max-height: 100vh;
        height: 100vh;
        justify-content: space-between;
        padding: 40px 20px 40px 20px;
    }
    
    .login-header {
        padding: 0;
        border-bottom: none;
        flex: 0;
        margin-top: 100px;
    }
    
    .login-body {
        padding: 20px;
        justify-content: flex-end;
        flex: 0;
    }
    
    #loginScreen .login-body {
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .logo {
        margin-bottom: 4px;
        gap: 5px;
    }
    
    .phone-section {
        margin-bottom: 12px;
    }
    
    .logo-image {
        width: 130px;
        height: 130px;
    }
    
    .logo-text {
        font-size: 28px;
        color: white;
    }
    
    .logo-subtitle {
        display: block;
        color: rgba(255, 255, 255, 0.8);
        font-size: 16px;
    }
    
    .version-bottom {
        display: none;
    }
    
    .phone-section h2 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .info-message {
        padding: 12px;
        font-size: 13px;
    }
    
    .info-message p {
        font-size: 13px;
    }
    
    #loginScreen .phone-section {
        background: rgba(255, 255, 255, 0.98);
        padding: 16px 20px 0 20px;
        margin: 0 -20px;
        border-radius: 12px 12px 0 0;
    }
    
    #loginScreen .info-message {
        margin: 0 -20px;
        padding: 12px 20px;
        border-radius: 0;
    }
    
    #loginScreen .login-form {
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        margin: 0 -20px;
        border-radius: 0 0 12px 12px;
    }
    
    #loginScreen .error-message,
    #loginScreen .success-message {
        margin: 0 -20px;
        padding: 12px 20px;
        border-radius: 0;
    }
    
    .phone-input-container {
        background: #ffffff;
    }
    
    .welcome-content {
        gap: 30px;
        height: 100%;
        justify-content: space-between;
    }
    
    .welcome-title {
        display: none;
    }
    
    .welcome-subtitle {
        display: none;
    }
    
    .welcome-buttons {
        margin-top: auto;
    }
    
    .btn-primary-action,
    .btn-secondary-action {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .btn-secondary-action {
        background: transparent;
        color: white;
        border: 2px solid white;
    }
    
    .btn-secondary-action:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Teléfonos estándar (iPhone 12/13/14, Galaxy S21, etc) */
@media (max-width: 480px) {
    body {
        padding: 0;
        overflow: hidden;
    }
    
    .login-container {
        padding: 0;
        overflow: hidden;
        height: 100vh;
    }
    
    .login-card {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        max-width: 100%;
        width: 100%;
        background: transparent;
        box-shadow: none;
        height: 100vh;
        justify-content: space-between;
        padding: 30px 20px 30px 20px;
    }
    
    .login-header {
        padding: 0;
        border-bottom: none;
        flex: 0;
        margin-top: 80px;
    }
    
    .login-body {
        padding: 20px;
        justify-content: flex-end;
        flex: 0;
    }
    
    #loginScreen .login-body {
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .logo {
        gap: 4px;
        margin-bottom: 4px;
    }
    
    .phone-section {
        margin-bottom: 10px;
    }
    
    .info-message {
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .logo-image {
        width: 120px;
        height: 120px;
    }
    
    .logo-text {
        font-size: 26px;
        color: white;
    }
    
    .logo-subtitle {
        display: block;
        color: rgba(255, 255, 255, 0.8);
        font-size: 15px;
    }
    
    .version-bottom {
        display: none;
    }
    
    .phone-section h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .subtitle {
        font-size: 12px;
        margin-bottom: 0;
    }
    
    .info-message {
        padding: 10px;
        margin-bottom: 10px;
        font-size: 12px;
    }
    
    .info-message p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .info-icon {
        font-size: 13px;
        margin-right: 8px;
    }
    
    .phone-input-container {
        margin-bottom: 12px;
        background: #ffffff;
    }
    
    #loginScreen .phone-section {
        background: rgba(255, 255, 255, 0.98);
        padding: 14px 18px 0 18px;
        margin: 0 -20px;
        border-radius: 12px 12px 0 0;
    }
    
    #loginScreen .info-message {
        margin: 0 -20px;
        padding: 10px 18px;
        border-radius: 0;
    }
    
    #loginScreen .login-form {
        background: rgba(255, 255, 255, 0.98);
        padding: 18px;
        margin: 0 -20px;
        border-radius: 0 0 12px 12px;
    }
    
    #loginScreen .error-message,
    #loginScreen .success-message {
        margin: 0 -20px;
        padding: 10px 18px;
        border-radius: 0;
    }
    
    .country-selector {
        padding: 12px 14px;
        min-width: 85px;
    }
    
    .country-code {
        font-size: 14px;
    }
    
    #phoneNumber {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 13px;
        font-size: 16px;
        margin-bottom: 0;
        margin-top: 8px;
    }
    
    .register-link {
        font-size: 13px;
    }
    
    .register-link p {
        margin: 0;
    }
    
    .version-bottom {
        bottom: 6px;
        left: 6px;
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .welcome-content {
        gap: 25px;
        height: 100%;
        justify-content: space-between;
    }
    
    .welcome-title {
        display: none;
    }
    
    .welcome-subtitle {
        display: none;
    }
    
    .welcome-buttons {
        margin-top: auto;
    }
    
    .btn-primary-action,
    .btn-secondary-action {
        padding: 15px 22px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .btn-secondary-action {
        background: transparent;
        color: white;
        border: 2px solid white;
    }
    
    .btn-secondary-action:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-back {
        font-size: 13px;
        padding: 7px 10px;
        margin-bottom: 12px;
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-back:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Teléfonos pequeños (iPhone SE, Galaxy A series, etc) */
@media (max-width: 390px) {
    body {
        padding: 0;
        overflow: hidden;
    }
    
    .login-container {
        padding: 0;
        align-items: center;
        height: 100vh;
        overflow: hidden;
    }
    
    .login-card {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        max-width: 100%;
        width: 100%;
        background: transparent;
        box-shadow: none;
        height: 100vh;
        justify-content: space-between;
        padding: 25px 20px 25px 20px;
    }
    
    .login-header {
        padding: 0;
        border-bottom: none;
        flex: 0;
        margin-top: 70px;
    }
    
    .login-body {
        padding: 15px;
        justify-content: flex-end;
        flex: 0;
    }
    
    #loginScreen .login-body {
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .phone-section {
        margin-bottom: 8px;
    }
    
    .info-message {
        margin-bottom: 8px;
        padding: 8px;
    }
    
    .phone-input-container {
        margin-bottom: 10px;
        background: #ffffff;
    }
    
    #loginScreen .phone-section {
        background: rgba(255, 255, 255, 0.98);
        padding: 12px 16px 0 16px;
        margin: 0 -15px;
        border-radius: 10px 10px 0 0;
    }
    
    #loginScreen .info-message {
        margin: 0 -15px;
        padding: 8px 16px;
        border-radius: 0;
    }
    
    #loginScreen .login-form {
        background: rgba(255, 255, 255, 0.98);
        padding: 16px;
        margin: 0 -15px;
        border-radius: 0 0 10px 10px;
    }
    
    #loginScreen .error-message,
    #loginScreen .success-message {
        margin: 0 -15px;
        padding: 8px 16px;
        border-radius: 0;
    }
    
    .logo {
        gap: 3px;
        margin-bottom: 3px;
    }
    
    .logo-image {
        width: 110px;
        height: 110px;
    }
    
    .logo-text {
        font-size: 24px;
        color: white;
    }
    
    .logo-subtitle {
        display: block;
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
    }
    
    .version-bottom {
        display: none;
    }
    
    .phone-section h2 {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .subtitle {
        font-size: 11px;
        margin-bottom: 0;
    }
    
    .info-message {
        padding: 8px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .info-message p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .info-icon {
        font-size: 12px;
        margin-right: 6px;
    }
    
    .phone-input-container {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .country-selector {
        padding: 10px 12px;
        min-width: 75px;
    }
    
    .country-code {
        font-size: 13px;
    }
    
    #phoneNumber {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 11px;
        font-size: 15px;
        margin-bottom: 0;
        margin-top: 6px;
        border-radius: 8px;
    }
    
    .register-link {
        font-size: 12px;
    }
    
    .register-link p {
        margin: 0;
    }
    
    .version-bottom {
        position: absolute;
        bottom: 5px;
        left: 5px;
        font-size: 7px;
        padding: 2px 4px;
    }
    
    .welcome-content {
        gap: 20px;
        height: 100%;
        justify-content: space-between;
    }
    
    .welcome-title {
        display: none;
    }
    
    .welcome-subtitle {
        display: none;
    }
    
    .welcome-buttons {
        margin-top: auto;
    }
    
    .btn-primary-action,
    .btn-secondary-action {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .btn-secondary-action {
        background: transparent;
        color: white;
        border: 2px solid white;
    }
    
    .btn-secondary-action:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-back {
        font-size: 12px;
        padding: 6px 9px;
        margin-bottom: 10px;
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-back:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Pantallas muy pequeñas (dispositivos antiguos, pantallas cortas) */
@media (max-width: 360px), (max-height: 600px) {
    body {
        padding: 0;
        height: 100vh;
        min-height: 100vh;
        align-items: center;
        padding-top: 0;
        overflow: hidden;
    }
    
    .login-container {
        padding: 0;
        align-items: center;
        height: 100vh;
        overflow: hidden;
    }
    
    .login-card {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        max-width: 100%;
        width: 100%;
        background: transparent;
        box-shadow: none;
        height: 100vh;
        justify-content: space-between;
        padding: 20px 15px 20px 15px;
    }
    
    .login-header {
        padding: 0;
        border-bottom: none;
        flex: 0;
        margin-top: 60px;
    }
    
    .login-body {
        padding: 10px;
        justify-content: flex-end;
        flex: 0;
    }
    
    #loginScreen .login-body {
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .phone-section {
        margin-bottom: 6px;
    }
    
    .info-message {
        margin-bottom: 6px;
        padding: 7px;
    }
    
    .phone-input-container {
        margin-bottom: 8px;
        background: #ffffff;
    }
    
    #loginScreen .phone-section {
        background: rgba(255, 255, 255, 0.98);
        padding: 10px 14px 0 14px;
        margin: 0 -10px;
        border-radius: 10px 10px 0 0;
    }
    
    #loginScreen .info-message {
        margin: 0 -10px;
        padding: 7px 14px;
        border-radius: 0;
    }
    
    #loginScreen .login-form {
        background: rgba(255, 255, 255, 0.98);
        padding: 14px;
        margin: 0 -10px;
        border-radius: 0 0 10px 10px;
    }
    
    #loginScreen .error-message,
    #loginScreen .success-message {
        margin: 0 -10px;
        padding: 7px 14px;
        border-radius: 0;
    }
    
    .logo {
        gap: 3px;
        margin-bottom: 3px;
    }
    
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .logo-text {
        font-size: 22px;
        color: white;
    }
    
    .logo-subtitle {
        display: block;
        color: rgba(255, 255, 255, 0.8);
        font-size: 13px;
    }
    
    .version-bottom {
        display: none;
    }
    
    .phone-section h2 {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .subtitle {
        font-size: 10px;
        margin-bottom: 0;
    }
    
    .info-message {
        padding: 7px;
        margin-bottom: 6px;
        border-radius: 6px;
    }
    
    .info-message p {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .info-icon {
        font-size: 11px;
        margin-right: 5px;
    }
    
    .phone-input-container {
        margin-bottom: 8px;
        border-radius: 6px;
    }
    
    .country-selector {
        padding: 9px 10px;
        min-width: 70px;
    }
    
    .country-code {
        font-size: 12px;
    }
    
    #phoneNumber {
        padding: 9px 10px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 14px;
        margin-bottom: 0;
        margin-top: 5px;
        border-radius: 6px;
    }
    
    .register-link {
        font-size: 11px;
    }
    
    .register-link p {
        margin: 0;
    }
    
    .version-bottom {
        position: absolute;
        bottom: 4px;
        left: 4px;
        font-size: 7px;
        padding: 2px 3px;
    }
    
    .welcome-content {
        gap: 18px;
        height: 100%;
        justify-content: space-between;
    }
    
    .welcome-title {
        display: none;
    }
    
    .welcome-subtitle {
        display: none;
    }
    
    .welcome-buttons {
        margin-top: auto;
    }
    
    .btn-primary-action,
    .btn-secondary-action {
        padding: 13px 18px;
        font-size: 14px;
        border-radius: 8px;
        gap: 8px;
    }
    
    .btn-primary-action svg,
    .btn-secondary-action svg {
        width: 18px;
        height: 18px;
    }
    
    .btn-secondary-action {
        background: transparent;
        color: white;
        border: 2px solid white;
    }
    
    .btn-secondary-action:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-back {
        font-size: 12px;
        padding: 6px 8px;
        margin-bottom: 8px;
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-back:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .register-content {
        padding: 30px 15px;
        font-size: 14px;
        color: white;
    }
}

/* Focus states */
#phoneNumber:focus {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
}

.country-selector:focus {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
}

.submit-btn:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Mensajes de error y éxito */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    text-align: center;
    flex-shrink: 0;
}

.success-message {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    text-align: center;
    flex-shrink: 0;
}

/* Checkbox Recordarme */
.remember-me-container {
    margin: 20px 0;
    text-align: left;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark {
    background-color: #1976d2;
    border-color: #1976d2;
}

.remember-me-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me-label:hover .checkmark {
    border-color: #1976d2;
}

.remember-me-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}