/* Shared Form Styles - Common design system for all forms */

* {
    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, #0f0f0f 0%, #1a1a1a 50%, #2d2d44 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 100vh;
    padding: 40px 20px;
}

.form-card {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(100, 100, 140, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 720px;
    padding: 40px;
    min-width: 350px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-card.large {
    max-width: 720px;
}

.form-card.xl {
    max-width: 600px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: #999;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(100, 100, 140, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group select option {
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

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

.btn-secondary {
    background: transparent;
    color: #888;
    border: 1px solid rgba(100, 100, 140, 0.3);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: rgba(100, 100, 140, 0.1);
    border-color: rgba(100, 100, 140, 0.5);
    color: #bbb;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.form-footer-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 100, 140, 0.2);
}

.form-footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.form-footer-links a:hover {
    color: #a78bfa;
}

.form-footer-text {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 30px;
}

.form-footer-text p {
    margin: 0;
}

.loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.password-strength {
    margin-top: 8px;
    font-size: 12px;
    padding: 8px;
    border-radius: 4px;
    background: rgba(100, 100, 140, 0.1);
    color: #999;
    display: none;
}

.password-strength.show {
    display: block;
}

.strength-meter {
    height: 4px;
    background: rgba(100, 100, 140, 0.2);
    border-radius: 2px;
    margin: 6px 0;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak { 
    background: #ef4444; 
    width: 33%;
}

.strength-fair { 
    background: #f97316; 
    width: 66%;
}

.strength-good { 
    background: #eab308; 
    width: 100%;
}

.strength-strong { 
    background: #22c55e; 
    width: 100%;
}

.strength-label {
    margin-top: 4px;
}

.form-info-box {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin-top: 15px;
    padding: 12px;
    background: rgba(100, 100, 140, 0.1);
    border-radius: 6px;
    border-left: 3px solid rgba(168, 85, 247, 0.4);
}

.divider-section {
    position: relative;
    margin: 24px 0;
}

.divider-section .divider-line {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.divider-section .divider-line::before {
    content: '';
    width: 100%;
    height: 1px;
    background: rgba(100, 100, 140, 0.2);
}

.divider-section .divider-text {
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 12px;
    text-transform: uppercase;
}

.divider-section .divider-text span {
    color: #666;
    padding: 0 12px;
    background: rgba(30, 30, 40, 0.8);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .form-card {
        max-width: 100%;
        padding: 30px 20px;
    }

    .form-card.large,
    .form-card.xl {
        max-width: 100%;
    }

    .form-header h1,
    .form-header h2 {
        font-size: 22px;
    }

    .btn {
        padding: 10px;
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
}

/* Wide screen adjustments */
@media (min-width: 1024px) {
    .form-card {
        max-width: 740px;
        padding: 50px;
    }

    .form-card.large {
        max-width: 820px;
    }

    .form-card.xl {
        max-width: 850px;
    }

    .form-header h1,
    .form-header h2 {
        font-size: 28px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .btn {
        padding: 12px;
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 13px;
    }
}

/* Extra wide screen adjustments */
@media (min-width: 1280px) {
    .form-card {
        max-width: 750px;
    }

    .form-card.large {
        max-width: 860px;
    }

    .form-card.xl {
        max-width: 960px;
    }

    .form-header h1,
    .form-header h2 {
        font-size: 32px;
    }
}

/* Helper utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #888;
}

.text-small {
    font-size: 14px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 16px;
}
