.register-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
}

.register-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.register-box h2 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.register-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.oauth-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.oauth-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.oauth-info strong {
    color: #1e40af;
}

.oauth-note {
    color: #6b7280;
    font-style: italic;
    margin-top: 1rem !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group select {
    cursor: pointer;
}

/* Password Requirements Styles */
.password-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.requirement.met {
    color: #059669;
}

.requirement.met .requirement-icon {
    color: #059669;
}

.requirement.not-met {
    color: #dc2626;
}

.requirement.not-met .requirement-icon {
    color: #dc2626;
}

/* Password input validation states */
.form-group input[type="password"].valid {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input[type="password"].invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.checkbox-group {
    margin-bottom: 2rem;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.checkbox-label a {
    color: #0066cc;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.login-link {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.login-link span {
    color: #6b7280;
    margin-right: 0.5rem;
}

.login-btn-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-btn-link:hover {
    color: #004999;
}

@media (max-width: 600px) {
    .register-container {
        padding: 1rem;
    }
    
    .register-box {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .logo {
        height: 50px;
    }
    
    .register-box h2 {
        font-size: 1.5rem;
    }
}

/* Username checking styles */
.username-check {
    position: relative;
    display: flex;
    align-items: center;
}

.username-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.username-status.checking {
    color: #f59e0b;
    animation: spin 1s linear infinite;
}

.username-status.available {
    color: #10b981;
}

.username-status.unavailable {
    color: #ef4444;
}

.username-status.error {
    color: #f59e0b;
}

.username-message {
    margin-top: 5px;
    font-size: 0.875rem;
    min-height: 20px;
}

.username-message.checking {
    color: #f59e0b;
}

.username-message.available {
    color: #10b981;
}

.username-message.unavailable {
    color: #ef4444;
}

.username-message.error {
    color: #f59e0b;
}

/* Username input error state */
.form-group input[type="text"]:focus.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}

/* General form field error styling */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* Error state for form fields when they have been touched */
.form-group input[style*="border-color: rgb(239, 68, 68)"],
.form-group select[style*="border-color: rgb(239, 68, 68)"],
.form-group textarea[style*="border-color: rgb(239, 68, 68)"] {
    background-color: rgba(239, 68, 68, 0.05);
    animation: shake 0.5s ease-in-out;
}

/* Shake animation for error fields */
@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70% {
        transform: translateX(-5px);
    }
    90% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

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