* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Panel izquierdo con gradiente morado */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.left-panel::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(50px);
}

.logo-section {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 20px;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-left: 52px;
    margin-top: -4px;
}

.time-section {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: auto 0;
}

.time-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-time {
    color: #f3e8ff;
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.current-date {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel derecho con formulario */
.right-panel {
    flex: 1;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

.flash-message {
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    color: #065f46;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-message i {
    color: #10b981;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: #111827;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me {
    margin-bottom: 24px;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6366f1;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
}

.remember-me-label input[type="checkbox"]:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.remember-me-label span {
    font-weight: 500;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.divider {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    margin: 24px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.alt-methods {
    display: flex;
    gap: 12px;
}

.btn-alt {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-alt:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f5ff;
}

.btn-alt i {
    font-size: 16px;
}

@media (max-width: 968px) {
    body {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .left-panel {
        min-height: 40vh;
        padding: 32px;
    }

    .current-time {
        font-size: 48px;
    }

    .right-panel {
        padding: 32px 24px;
        padding-bottom: max(32px, env(safe-area-inset-bottom, 32px) + 60px);
        min-height: 60vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .login-form-container {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .alt-methods {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 24px 20px;
        padding-bottom: max(24px, env(safe-area-inset-bottom, 24px) + 80px);
    }
    
    .login-form-container {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .alt-methods {
        margin-bottom: 30px;
    }
}
