:root {
    --woori-primary: #3b82f6;
    --woori-secondary: #22d3ee;
    --woori-accent: #fbbf24;
}

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

body {
    font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container,
.register-container,
.forgot-container {
    width: 100%;
}

.login-container {
    max-width: 450px;
}

.register-container {
    max-width: 600px;
}

.forgot-container {
    max-width: 500px;
}

.login-card,
.register-card,
.forgot-card {
    background: #1e293b;
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.register-card,
.forgot-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.login-header,
.register-header,
.forgot-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem 2rem 2rem;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.register-header,
.forgot-header {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, transparent 100%);
}

.login-header img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.register-header img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.forgot-header img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
}

.register-header h1,
.forgot-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.forgot-header h1 {
    font-size: 1.75rem;
}

.login-header p,
.register-header p,
.forgot-header p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0;
    color: #cbd5e1;
}

.register-header p,
.forgot-header p {
    color: #94a3b8;
    opacity: 1;
    font-size: 1rem;
}

.forgot-header p {
    line-height: 1.6;
}

.login-body,
.register-body,
.forgot-body {
    padding: 2.5rem 2rem;
    background: #1e293b;
}

.form-label {
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.register-body .form-label,
.forgot-body .form-label {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.form-label .required {
    color: #f87171;
    margin-left: 0.25rem;
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #334155;
    transition: all 0.3s ease;
    background: #0f172a;
    color: #f1f5f9;
}

.register-body .form-control,
.forgot-body .form-control,
.register-body .form-select,
.forgot-body .form-select {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #e2e8f0;
}

.form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #334155;
    transition: all 0.3s ease;
    background-color: #0f172a;
    color: #f1f5f9;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    background-color: #0f172a;
    color: #f1f5f9;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    background: #0f172a;
    color: #f1f5f9;
}

.form-control::placeholder {
    color: #64748b;
}

.input-group-text {
    background-color: #0f172a;
    border: 2px solid #334155;
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    color: #22d3ee;
}

.register-body .input-group-text,
.forgot-body .input-group-text {
    background: #334155;
    color: #94a3b8;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
}

.input-group .form-control:focus {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: #3b82f6;
}

.password-toggle {
    background: #334155;
    border: 2px solid #334155;
    border-left: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    background: #475569;
    color: #e2e8f0;
}

.btn-login,
.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.btn-submit {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn-login:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #334155;
}

.divider span {
    padding: 0 1rem;
}

.social-login {
    display: grid;
    gap: 0.75rem;
}

.btn-social {
    padding: 0.875rem;
    border: 2px solid #334155;
    border-radius: 0.5rem;
    background: transparent;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-social:hover {
    background: #334155;
    border-color: #475569;
    color: white;
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 1.25rem;
}

.login-footer,
.register-footer,
.forgot-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: #0f172a;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.login-footer p,
.register-footer p,
.forgot-footer p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.login-footer a,
.register-footer a,
.forgot-footer a {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover,
.register-footer a:hover,
.forgot-footer a:hover {
    color: #3b82f6;
}

.form-check {
    margin: 1rem 0;
}

.form-check-input {
    background-color: #0f172a;
    border: 2px solid #334155;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-check-label {
    color: #cbd5e1;
    cursor: pointer;
    margin-left: 0.5rem;
}

.form-check-label a {
    color: #22d3ee;
    text-decoration: none;
}

.form-check-label a:hover {
    color: #3b82f6;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.login-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #22d3ee;
}

.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-info {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
    transition: all 0.3s ease;
}

.step.active {
    background: #3b82f6;
    width: 30px;
    border-radius: 5px;
}

.role-selector {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    padding: 1.25rem;
    border: 2px solid #334155;
    border-radius: 0.75rem;
    background: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.role-option:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.role-option.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

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

.role-option i {
    font-size: 2.5rem;
    color: #22d3ee;
    margin-bottom: 0.5rem;
}

.role-option h4 {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.role-option p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 576px) {
    .login-header img {
        width: 180px;
        height: 180px;
    }
    
    .register-header img {
        width: 140px;
        height: 140px;
    }
    
    .forgot-header img {
        width: 100px;
        height: 100px;
    }
    
    body {
        padding: 0.5rem;
    }
}

.fi {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.dropdown-item:hover {
    background-color: #2a2a2a !important;
    color: #fff !important;
}
