/* register.css - Modern Black & Orange Registration Theme */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2C;
    --primary-light: #FF8A5C;
    --primary-soft: rgba(255, 107, 53, 0.1);
    --dark-bg: #0A0A0A;
    --dark-card: #121212;
    --dark-surface: #1A1A1A;
    --dark-elevated: #242424;
    --gray-100: #E5E5E5;
    --gray-200: #CCCCCC;
    --gray-300: #B3B3B3;
    --gray-400: #999999;
    --gray-500: #808080;
    --gray-600: #666666;
    --gray-700: #4D4D4D;
    --gray-800: #333333;
    --gray-900: #1F1F1F;
    --success: #00C851;
    --danger: #FF4444;
    --warning: #FFB74D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0F0F0F 100%);
    color: var(--gray-200);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Main Container - Flex Centered */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Form Card */
form {
    background: var(--dark-card);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

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

form:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.1);
}

/* Form Title (if any) */
.form-title {
    text-align: center;
    margin-bottom: 32px;
}

.form-title h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.form-title p {
    color: var(--gray-500);
    font-size: 14px;
}

/* Form Groups - Flex Column */
.mb-3 {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: var(--gray-300);
    font-size: 14px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

/* Input Fields */
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-surface);
    border: 2px solid var(--gray-800);
    border-radius: 16px;
    color: var(--gray-100);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    background: var(--dark-elevated);
}

.form-control::placeholder {
    color: var(--gray-600);
}

/* Input with icon */
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 16px;
    color: var(--gray-600);
    font-size: 18px;
}

.input-icon .form-control {
    padding-left: 44px;
}

/* Text Helper */
.text-muted {
    color: var(--gray-600) !important;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-muted i {
    font-size: 12px;
}

/* Button - Flex Centered */
.d-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

/* Alert Messages - Flex Layout */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border-left-color: var(--danger);
    color: #ffaaaa;
}

.alert-success {
    background: rgba(0, 200, 81, 0.1);
    border-left-color: var(--success);
    color: #aaffcc;
}

.alert i {
    font-size: 20px;
}

.alert-danger i {
    color: var(--danger);
}

.alert-success i {
    color: var(--success);
}

/* Divider */
hr {
    margin: 32px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-800), transparent);
}

/* Text Center */
.text-center {
    text-align: center;
}

.text-center p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.text-center a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.text-center a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.text-center a:hover::after {
    width: 100%;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-800);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--gray-600);
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 20px 16px;
    }
    
    form {
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .mb-3 {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    form {
        padding: 24px 20px;
    }
    
    .form-title h2 {
        font-size: 24px;
    }
    
    .alert {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

/* Custom Checkbox/Radio (if needed) */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-label {
    color: var(--gray-400);
    font-size: 14px;
    cursor: pointer;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

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

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Floating Animation for Form */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Additional Styles for Better UX */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--dark-surface) inset !important;
    -webkit-text-fill-color: var(--gray-100) !important;
}

/* Error State for Inputs */
.form-control.error {
    border-color: var(--danger);
}

.form-control.error:focus {
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.1);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Success State for Inputs */
.form-control.success {
    border-color: var(--success);
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .form-label {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    form,
    .btn,
    .alert {
        display: none;
    }
}

/* Smooth Transitions for Interactive Elements */
.form-control,
.btn,
.alert {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.form-control:hover {
    border-color: var(--gray-700);
}

/* Focus Styles for Better UX */
input:focus {
    transform: translateY(-1px);
}

/* Animated Background Gradient */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Social Login Section (if needed) */
.social-login {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--dark-surface);
    border: 1px solid var(--gray-800);
    border-radius: 12px;
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 20px;
}

/* Terms and Conditions */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.terms input {
    margin-top: 2px;
}

.terms label {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.terms a {
    color: var(--primary);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}