:root {
    --primary-color: #6366F1;
    --primary-hover: #4F46E5;
    --secondary-color: #10B981;
    --bg-color: #0B1120;
    --surface-color: rgba(30, 41, 59, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --error-color: #EF4444;
    --focus-ring: rgba(99, 102, 241, 0.5);
    
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background animated shapes */
.background-shapes {
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #4F46E5;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #10B981;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #9333EA;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Form Container */
.container {
    width: 100%;
    max-width: 550px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.form-wrapper {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Inputs */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-left: 0.2rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i:not(.ph-eye) {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-icon-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
    background: rgba(15, 23, 42, 0.8);
}

.input-icon-wrapper input:focus + i,
.input-icon-wrapper input:focus ~ i {
    color: var(--primary-color);
}

.input-icon-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

/* Role Selector */
.role-selector {
    display: flex;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 0.5rem;
}

.role-selector input[type="radio"] {
    display: none;
}

.role-selector label {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.role-selector input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}


.toggle-password:hover {
    color: var(--text-primary);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    display: none; /* Hidden initially */
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 0.3rem;
    overflow: hidden;
    position: relative;
}

.strength-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--error-color);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Checkbox */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checkbox-field input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-field input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-field label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-field a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-field a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366F1 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

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

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Error message */
.error-msg {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 600px) {
    .input-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-wrapper {
        padding: 2rem;
    }
}
