/**
 * Custom Authentication Forms CSS
 * Additional styling for the custom login/registration forms
 */

.glizup-auth-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.glizup-auth-page * {
    box-sizing: border-box;
}

/* Form animations */
.glizup-auth-page .bg-white {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input focus states */
.glizup-auth-page input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Button hover effects */
.glizup-auth-page button[type="submit"] {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.glizup-auth-page button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.glizup-auth-page button[type="submit"]:active {
    transform: translateY(0);
}

/* Google button styling */
.glizup-auth-page .google-button {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.glizup-auth-page .google-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.glizup-auth-page .google-button:active {
    transform: translateY(0);
}

/* Password toggle button */
.glizup-auth-page .password-toggle {
    transition: color 0.2s ease-in-out;
}

.glizup-auth-page .password-toggle:hover {
    color: #374151;
}

/* Error states */
.glizup-auth-page .border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}


/* Loading state */
.glizup-auth-page button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}


/* Password strength indicator */
.glizup-auth-page .password-strength {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .glizup-auth-page .min-h-screen {
        padding: 1rem;
    }
    
    .glizup-auth-page .max-w-md {
        margin: 0;
    }
    
    .glizup-auth-page .bg-white {
        padding: 1.5rem;
    }
}

/* Custom checkbox styling */
.glizup-auth-page input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.glizup-auth-page input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.glizup-auth-page input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.glizup-auth-page input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Link hover effects */
.glizup-auth-page a {
    transition: color 0.2s ease-in-out;
}

.glizup-auth-page a:hover {
    text-decoration: none;
}

/* Back to GLIZ link styling */
.glizup-auth-page .back-to-gliz {
    transition: all 0.2s ease-in-out;
}

.glizup-auth-page .back-to-gliz:hover {
    transform: translateX(-2px);
}

/* Divider styling */
.glizup-auth-page .divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.glizup-auth-page .divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d1d5db;
}

.glizup-auth-page .divider span {
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form field spacing */
.glizup-auth-page .space-y-4 > * + * {
    margin-top: 1rem;
}

.glizup-auth-page .space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Button group spacing */
.glizup-auth-page .space-x-1 > * + * {
    margin-left: 0.25rem;
}

.glizup-auth-page .space-x-2 > * + * {
    margin-left: 0.5rem;
}
