/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(24, 173, 243, 0.1);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

/* Contenedor principal */
.auth-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Botón volver */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #F5F5F5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #212121;
}

.back-button:hover {
    background: #E0E0E0;
    transform: translateX(-3px);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
   color: #1193ea;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: #757575;
    font-size: 16px;
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.alert-success {
    background-color: #E0F2F1;
    color: #00695C;
    border: 1px solid #B2DFDB;
}

.alert-warning {
    background-color: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFE0B2;
}

/* Formulario */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #757575;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.phone-prefix {
    position: absolute;
    left: 48px;
    color: #212121;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    color: #212121;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.form-input.with-prefix {
    padding-left: 80px;
}

.form-input:focus {
    outline: none;
   border-color: #1193ea;
       box-shadow: 0 0 0 3px rgba(53, 208, 255, 0.1);
}

.form-input::placeholder {
    color: #757575;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #757575;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #FF6B35;
}

/* Botón primario */
.btn-primary {
    width: 100%;
    padding: 14px;
     background: linear-gradient(135deg, #36a8d9, #35b4eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(53, 228, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
     box-shadow: 0 6px 16px rgba(53, 228, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Switch entre login/registro */
.auth-switch {
    text-align: center;
    color: #757575;
    font-size: 14px;
}

.auth-switch a {
   color: #068acc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #068acc;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .circle-1,
    .circle-2 {
        display: none;
    }
    
    .back-button {
        top: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}