/* AI Visibility Tracker - Login Form Styles */

.avt-btn-text {
    background: transparent;
    color: white !important;
    border: none;
    text-decoration: underline;
}

.avt-btn-text:hover {
    background: transparent;
    color: black !important;
    border: none;
    text-decoration: underline;
}

.avt-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.avt-login-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.avt-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.avt-login-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.avt-login-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.avt-reset-header {
    text-align: center;
    margin-bottom: 24px;
}

.avt-reset-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.avt-reset-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Form Styles */
.avt-form {
    width: 100%;
}

.avt-form-group {
    margin-bottom: 20px;
}

.avt-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.avt-form-group input[type="email"],
.avt-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.avt-form-group input[type="email"]:focus,
.avt-form-group input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.avt-form-group input[type="email"]::placeholder,
.avt-form-group input[type="password"]::placeholder {
    color: #9ca3af;
}

/* Checkbox Styles */
.avt-form-checkbox {
    margin-bottom: 24px;
}

.avt-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    margin: 0;
}

.avt-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.avt-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.avt-checkbox-label input[type="checkbox"]:checked + .avt-checkbox-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.avt-checkbox-label input[type="checkbox"]:checked + .avt-checkbox-custom::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Button Styles */
.avt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.avt-btn-primary {
    background-color: #37b975;
    color: white;
}

.avt-btn-primary:hover:not([disabled]) {
    background-color: #37b975;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.avt-btn-full {
    width: 100%;
}

.avt-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.avt-btn-loading {
    display: none;
}

.avt-btn.loading .avt-btn-text {
    display: none;
}

.avt-btn.loading .avt-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Spinner */
.avt-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Messages */
.avt-form-messages {
    margin-bottom: 20px;
}

.avt-form-messages .avt-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.avt-form-messages .avt-message:last-child {
    margin-bottom: 0;
}

.avt-message.success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.avt-message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.avt-message.info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* Form Footer */
.avt-form-footer {
    text-align: center;
    margin-top: 24px;
}

.avt-link {
    color: black;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.avt-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Register Link */
.avt-register-link {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.avt-register-link p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Login Notice */
.avt-login-notice {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    text-align: center;
}

.avt-login-notice p {
    margin: 0;
    color: #1d4ed8;
    font-size: 16px;
}

.avt-login-notice a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.avt-login-notice a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .avt-login-container {
        margin: 20px auto;
        padding: 10px;
    }
    
    .avt-login-form-wrapper {
        padding: 30px 20px;
    }
    
    .avt-login-header h2 {
        font-size: 24px;
    }
    
    .avt-login-header p {
        font-size: 14px;
    }
    
    .avt-form-group input[type="email"],
    .avt-form-group input[type="password"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .avt-login-form-wrapper {
        padding: 20px 15px;
    }
    
    .avt-login-header {
        margin-bottom: 24px;
    }
}

