/* Registration Page Styles */
.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-button:hover {
    background-color: var(--border);
    transform: translateX(-4px);
}

.registration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
}

.registration-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    z-index: 0;
    overflow: hidden;
}

/* Animated decorative circles/bubbles */
.registration-bg::before,
.registration-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.registration-bg::before {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 8%;
    animation-delay: 0s;
}

.registration-bg::after {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 5%;
    animation-delay: 2s;
    animation-duration: 8s;
}

/* Additional decorative blobs */
.deco-blob-1,
.deco-blob-2,
.deco-blob-3 {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    animation: morph 8s ease-in-out infinite;
    z-index: 0;
}

.deco-blob-1 {
    width: 250px;
    height: 250px;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.deco-blob-2 {
    width: 180px;
    height: 180px;
    top: 40%;
    right: -40px;
    animation-delay: 3s;
    animation-duration: 10s;
}

.deco-blob-3 {
    width: 220px;
    height: 220px;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
    animation-duration: 9s;
}

/* Small floating particles */
.deco-particle-1,
.deco-particle-2,
.deco-particle-3,
.deco-particle-4 {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    animation: floatSlow 12s ease-in-out infinite;
}

.deco-particle-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.deco-particle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.deco-particle-3 {
    width: 50px;
    height: 50px;
    bottom: 25%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.deco-particle-4 {
    width: 70px;
    height: 70px;
    top: 75%;
    left: 25%;
    animation-delay: 6s;
    animation-duration: 11s;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-25px) translateX(5px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    33% {
        transform: translateY(-30px) scale(1.05);
    }
    66% {
        transform: translateY(-15px) scale(0.95);
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 40% 70% 30%;
        transform: rotate(5deg);
    }
    50% {
        border-radius: 50% 50% 60% 40% / 50% 60% 40% 50%;
        transform: rotate(-5deg);
    }
    75% {
        border-radius: 70% 30% 40% 60% / 30% 70% 50% 60%;
        transform: rotate(3deg);
    }
}

/* Dark mode decorative elements */
[data-theme="dark"] .registration-bg::before,
[data-theme="dark"] .registration-bg::after {
    background: rgba(129, 140, 248, 0.12);
}

[data-theme="dark"] .deco-blob-1,
[data-theme="dark"] .deco-blob-2,
[data-theme="dark"] .deco-blob-3 {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(167, 139, 250, 0.08));
}

[data-theme="dark"] .deco-particle-1,
[data-theme="dark"] .deco-particle-2,
[data-theme="dark"] .deco-particle-3,
[data-theme="dark"] .deco-particle-4 {
    background: rgba(167, 139, 250, 0.15);
}

.registration-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 3rem 2rem;
}

.registration-step {
    display: none;
    animation: slideFadeIn 0.4s ease;
}

.registration-step.active {
    display: block;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: default;
}

.step-number.clickable {
    cursor: pointer;
}

.step-number.clickable:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

.step-number.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-number.completed {
    background-color: #10b981;
    color: white;
}

.step-divider {
    flex-grow: 1;
    height: 3px;
    background-color: var(--border);
    margin: 0 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.step-divider.active {
    background-color: var(--primary-color);
}

/* Input with button style (for verification code) */
.input-with-button {
    display: flex;
    gap: 0.75rem;
}

.input-with-button .form-input {
    flex: 1;
}

.input-with-button .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
}

/* Dropdown / Select Styles */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23cbd5e1' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Role Selection Cards - Compact Horizontal Layout */
.role-selection-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    background-color: var(--surface);
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 140px;
}

.role-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.role-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.role-card.selected::before {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.role-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.role-card:hover .role-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.role-card.selected .role-icon {
    color: var(--primary-color);
}

.role-icon svg {
    width: 100%;
    height: 100%;
}

.role-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.role-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.role-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-divider span {
    padding: 0.375rem 0.75rem;
    background-color: var(--background);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
}

/* College Selection Cards - Same style as role selection */
.college-selection-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.college-selection-container.compact {
    opacity: 0;
    transform: scale(0.9);
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.college-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    background-color: var(--surface);
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 140px;
}

.college-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.college-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.college-card.selected::before {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.college-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.college-card:hover .college-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.college-card.selected .college-icon {
    color: var(--primary-color);
}

.college-icon svg {
    width: 100%;
    height: 100%;
}

.college-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.college-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.college-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.college-divider span {
    padding: 0.375rem 0.75rem;
    background-color: var(--background);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
}

/* Compact Selected College Display */
.college-selected-display {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.college-selected-display.show {
    opacity: 1;
    transform: translateY(0);
}

.selected-college-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.selected-college-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-college-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.selected-college-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.change-college-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-college-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.change-college-btn svg {
    transition: transform 0.3s ease;
}

.change-college-btn:hover svg {
    transform: rotate(-360deg);
}

/* Program Group - Slide in animation */
#program-group {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#program-group.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Program Carousel Viewport */
.program-carousel-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1rem 0 1.5rem 0;
    border-radius: var(--radius-lg);
    cursor: default;
}

/* Smooth blur fade on edges */
.program-carousel-viewport::before,
.program-carousel-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px; /* 80 */
    z-index: 5;
    pointer-events: none;
}

.program-carousel-viewport::before {
    left: 0;
    background: linear-gradient(to right, var(--reg-surface) 0%, rgba(255, 255, 255, 0) 100%);
}

.program-carousel-viewport::after {
    right: 0;
    background: linear-gradient(to left, var(--reg-surface) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Dark mode fade edges */
[data-theme="dark"] .program-carousel-viewport::before {
    background: linear-gradient(to right, var(--reg-surface) 0%, rgba(30, 41, 59, 0) 100%);
}

[data-theme="dark"] .program-carousel-viewport::after {
    background: linear-gradient(to left, var(--reg-surface) 0%, rgba(30, 41, 59, 0) 100%);
}

.program-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    padding: 0.5rem;
    align-items: stretch;
}

/* Program Card */
.program-card {
    flex: 0 0 auto;
    width: 240px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02), 0 4px 16px rgba(99, 102, 241, 0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, background 0.2s, border-color 0.3s;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-height: 120px;
    cursor: pointer;
    user-select: none;
}

.program-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.program-card.active {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.20);
    border-color: var(--primary-color);
    z-index: 3;
}

.program-card .program-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.program-card .program-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Carousel Arrow Buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    color: var(--primary-color);
}

[data-theme="dark"] .carousel-arrow {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(100, 116, 139, 0.5);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    transform: translateY(-50%) scale(1.08);
}

[data-theme="dark"] .carousel-arrow:hover {
    background: rgba(30, 41, 59, 0.9);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: 8px;
}

.carousel-arrow-right {
    right: 8px;
}

.carousel-arrow svg {
    stroke-width: 2.5;
}

/* Program Carousel Indicators */
.program-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.program-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 20px;
    background: var(--border);
    transition: all 0.25s ease;
    cursor: pointer;
}

.program-indicator-dot:hover {
    background: var(--secondary-color);
}

.program-indicator-dot.active {
    background: var(--primary-color);
    width: 24px;
}




/* Step Content */
.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

/* Form Group Updates */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 3.5rem;
}

.toggle-password-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    border-radius: var(--radius-sm);
}

.toggle-passwo  rd-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.toggle-password-btn .eye-icon {
    pointer-events: none;
}

/* Password Strength Indicator */
.password-strength-container {
    margin-top: 0.75rem;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-fill.weak {
    width: 25%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.password-strength-fill.fair {
    width: 50%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.password-strength-fill.good {
    width: 75%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.password-strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.password-suggestion {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    min-height: 1.2rem;
    transition: opacity 0.2s ease;
}

.password-suggestion:empty {
    opacity: 0;
}

/* Password Test Step */
.password-test-container {
    text-align: center;
    padding: 2rem 0;
}

.password-test-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.password-test-instructions {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.password-test-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.password-test-input:focus {
    letter-spacing: 0.5em;
}

.password-test-input.correct {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.password-test-input.incorrect {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
    animation: shake 0.5s ease;
}

.password-test-feedback {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.password-test-feedback.correct {
    color: #10b981;
}

.password-test-feedback.incorrect {
    color: #ef4444;
}

/* Disable text selection and context menu for password test */
.password-test-input {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-modal.active {
    display: flex;
    opacity: 1;
}

.success-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .success-modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.success-modal-content {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.success-modal.active .success-modal-content {
    transform: scale(1) translateY(0);
}

.success-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.success-modal-close.visible {
    opacity: 1;
    pointer-events: auto;
}

.success-modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #10b981;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.success-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.success-options .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.button-group .btn {
    flex: 1;
}

/* Button States and Cursor Tooltip */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

/* Cursor-following tooltip */
.cursor-tooltip {
    margin: -5px 0px 0px 0px;
    position: fixed;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -120%) scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.cursor-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1);
}

.cursor-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #dc2626;
}

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

.btn.shake {
    animation: shake 0.5s ease;
}

/* Responsive Design */
@media (max-width: 640px) {
    .registration-content {
        padding: 2rem 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-divider {
        width: 60px;
        margin: 0 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .role-selection-container,
    .college-selection-container {
        flex-direction: column;
    }
    
    .role-card,
    .college-card {
        padding: 1.5rem 1.25rem;
        min-height: 130px;
    }
    
    .role-icon,
    .college-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.75rem;
    }
    
    .role-title,
    .college-title {
        font-size: 1.2rem;
    }
    
    .role-description,
    .college-description {
        font-size: 0.85rem;
    }
    
    .role-divider,
    .college-divider {
        margin: 0.5rem 0;
    }
    
    .program-card {
        width: 200px;
        min-height: 110px;
        padding: 1.25rem 1rem;
    }
    
    .program-card .program-code {
        font-size: 1.3rem;
    }
    
    .program-card .program-name {
        font-size: 0.8rem;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    /* Wider fade on mobile for better visibility */
    .program-carousel-viewport::before,
    .program-carousel-viewport::after {
        width: 60px;
    }
    
    /* Reduce decorative elements on mobile */
    .registration-bg::before {
        width: 120px;
        height: 120px;
    }
    
    .registration-bg::after {
        width: 100px;
        height: 100px;
    }
    
    .deco-blob-1 {
        width: 150px;
        height: 150px;
    }
    
    .deco-blob-2 {
        width: 120px;
        height: 120px;
    }
    
    .deco-blob-3 {
        width: 140px;
        height: 140px;
    }
    
    .deco-particle-1,
    .deco-particle-2,
    .deco-particle-3 {
        display: none; /* Hide some particles on mobile */
    }
    
    .deco-particle-4 {
        width: 50px;
        height: 50px;
    }
}

/* Google Authentication Styles */
.google-auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.google-auth-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.auth-icon {
    transition: all 0.3s ease;
}

.auth-icon-pending {
    color: var(--text-secondary);
}

.auth-icon-verified {
    color: var(--success-color);
}

.auth-status-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Google Sign-In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 240px;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-google:active {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.google-icon {
    flex-shrink: 0;
}

/* Dark mode adjustments */
body.dark-mode .btn-google {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-google:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Google Auth Info Card */
.google-auth-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.auth-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.auth-user-details {
    flex: 1;
    min-width: 0;
}

.auth-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-icon-verified {
    color: var(--success-color);
    flex-shrink: 0;
}

/* Change Account Button */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--primary-color);
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-text:hover {
    background: var(--hover-color);
}

.btn-text svg {
    transition: transform 0.3s ease;
}

.btn-text:hover svg {
    transform: rotate(-45deg);
}

/* Account Already Exists Error */
.account-exists-error {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 500px;
    animation: slideIn 0.4s ease-out;
}

.account-exists-error svg {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.error-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.error-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ef4444;
    margin: 0;
}

.error-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

/* Dark mode adjustments */
body.dark-mode .account-exists-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border-color: rgba(239, 68, 68, 0.4);
}

/* Gatekeeper slide-to-verify styling */
.gatekeeper-view {
    text-align: center;
    width: 100%;
    animation: slideFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .gatekeeper-view {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-verify-container {
    width: 100%;
    margin: 2.5rem 0 1rem 0;
    position: relative;
    user-select: none;
}

.slider-verify-track {
    height: 60px;
    background-color: var(--border);
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .slider-verify-track {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.slider-verify-bg-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.slider-verify-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 30px 0 0 30px;
    z-index: 0;
    transition: width 0.1s ease;
}

.slider-verify-handle {
    width: 52px;
    height: 52px;
    background-color: var(--surface);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 4px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
    z-index: 2;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, left 0.1s ease, color 0.3s ease;
    color: var(--text-primary);
}

.slider-verify-handle:hover {
    background-color: var(--border);
}

.slider-verify-handle:active {
    cursor: grabbing;
    background-color: var(--border);
    transform: scale(1.05);
}

.slider-verify-container.verified .slider-verify-handle {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
    cursor: default;
    transform: scale(1);
}

.slider-verify-container.verified .slider-verify-track {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.slider-verify-container.verified .slider-verify-bg-text {
    color: #10b981;
    font-weight: 600;
    opacity: 1 !important;
}

.slider-verify-container.verified .slider-verify-fill {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
    width: 100% !important;
}

.registration-form-wrap {
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.registration-form-wrap.visible {
    opacity: 1;
}


/* Terms and Conditions Styles (Step 8) */
.terms-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.terms-scroll-wrapper {
    height: 400px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--border);
}

.terms-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 10px;
}

.terms-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.terms-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.terms-content {
    padding: 2rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.terms-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    text-align: center;
}

.terms-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.terms-content h3:first-of-type {
    border-top: none;
    padding-top: 0;
}

.terms-content p {
    margin: 0.75rem 0;
    color: var(--text-secondary);
}

.terms-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.terms-content ul,
.terms-content ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
    padding: 0;
}

.terms-content li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.terms-effective-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0.25rem 0;
}

.terms-intro {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

.terms-acknowledgment {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid #10b981;
    margin: 1.5rem 0;
    font-weight: 500;
}

.terms-footer {
    text-align: center;
    font-size: 1rem;
    color: var(--primary-color);
    margin: 2rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.contact-info {
    background: var(--background);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 0.75rem 0;
}

.contact-info p {
    margin: 0.25rem 0;
    line-height: 1.6;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Terms Progress Indicator */
.terms-progress-container {
    padding: 1rem 1.5rem;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.terms-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.terms-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.terms-progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.terms-progress-text svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.terms-progress-text.complete {
    color: #10b981;
    font-weight: 600;
}

.terms-progress-text.complete svg {
    animation: none;
    transform: rotate(180deg);
}

/* Terms Agreement Checkbox */
.terms-agreement-container {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-agreement-container.show {
    opacity: 1;
    transform: translateY(0);
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.terms-checkbox-custom {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: all 0.3s ease;
    position: relative;
    margin-top: 0.125rem;
}

.terms-checkbox:checked + .terms-checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.terms-checkbox:checked + .terms-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
}

.terms-checkbox-label:hover .terms-checkbox-custom {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.terms-checkbox-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Complete Registration Button Enhancement */
#step-8 #complete-registration {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

#step-8 #complete-registration:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

#step-8 #complete-registration:disabled {
    background: var(--border);
    box-shadow: none;
}

/* Responsive Terms */
@media (max-width: 640px) {
    .terms-scroll-wrapper {
        height: 350px;
    }
    
    .terms-content {
        padding: 1.5rem 1rem;
    }
    
    .terms-content h2 {
        font-size: 1.25rem;
    }
    
    .terms-content h3 {
        font-size: 1rem;
    }
    
    .terms-progress-container {
        padding: 0.875rem 1rem;
    }
    
    .terms-agreement-container {
        padding: 1rem;
    }
    
    .terms-checkbox-text {
        font-size: 0.875rem;
    }
}

/* Spinning animation for loading indicator */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
