/* signup.css - Enhanced Version with OG Colors */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0d6efd 0%, #6c63ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Horizontal Card Container */
.signup-card-horizontal {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side (Welcome/Graphics) */
.signup-left {
    background: linear-gradient(135deg, #0d6efd 0%, #6c63ff 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.signup-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.signup-left-content {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.logo-large {
    font-size: 4rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.signup-left h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.signup-left p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.features-list li i {
    width: 24px;
    text-align: center;
    color: #fff;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 30px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Right Side (Form) */
.signup-right {
    padding: 40px;
    background: #fff;
}

.signup-right-content {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-right h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.signup-right .text-muted {
    color: #6c757d !important;
    margin-bottom: 2rem;
}

/* Form Controls */
.form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
}

.form-control {
    border-radius: 30px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
    opacity: 0.7;
}

.form-text {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 5px;
    margin-left: 15px;
}

/* Role Selection */
.role-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
}

.role-option:hover {
    border-color: #0d6efd;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}

.role-option.selected {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(106, 99, 255, 0.1));
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
}

.role-option i {
    margin-bottom: 10px;
    font-size: 28px;
}

.role-option h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

/* Password Strength Meter */
.password-strength {
    height: 5px;
    border-radius: 10px;
    margin-top: 8px;
    transition: all 0.3s ease;
    background-color: #e9ecef;
    overflow: hidden;
    position: relative;
}

.password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--strength-width, 0%);
    background: var(--strength-color, #dc3545);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.strength-weak { --strength-width: 25%; --strength-color: #dc3545; }
.strength-fair { --strength-width: 50%; --strength-color: #ffc107; }
.strength-good { --strength-width: 75%; --strength-color: #0d6efd; }
.strength-strong { --strength-width: 100%; --strength-color: #28a745; }

/* Submit Button */
.btn-signup-horizontal {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    border-radius: 30px;
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-signup-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-signup-horizontal:hover {
    background: linear-gradient(135deg, #0a58ca, #0846c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.btn-signup-horizontal:hover::before {
    left: 100%;
}

.btn-signup-horizontal:active {
    transform: translateY(0);
}

.btn-signup-horizontal:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation States */
.is-valid {
    border-color: #28a745 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Alert Messages */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(200, 35, 51, 0.1));
    border-left: 4px solid #dc3545;
    color: #b02a37;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(30, 126, 52, 0.1));
    border-left: 4px solid #28a745;
    color: #1e7e34;
}

/* Dynamic field handling */
.student-only {
    transition: all 0.3s ease;
}

.field-optional {
    opacity: 0.7;
}

.field-optional .form-label::after {
    content: " (Optional)";
    font-weight: normal;
    color: #6c757d;
}

/* =============== CIRCULAR PROGRESS BAR STYLES =============== */
.circle-progress-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.circle-error-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.circle-progress, .circle-error {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 8;
}

.circle-progress-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    animation: circleProgress 2s ease-out forwards;
}

.circle-error-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    animation: circleError 1.5s ease-out forwards;
}

.circle-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 48px;
    color: #28a745;
    font-weight: bold;
    animation: checkmarkPop 0.5s ease-out 1.5s forwards;
}

.circle-crossmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 48px;
    color: #dc3545;
    font-weight: bold;
    animation: crossmarkPop 0.5s ease-out 1s forwards;
}

/* Circular Progress Animation */
@keyframes circleProgress {
    0% {
        stroke-dashoffset: 339.292;
        stroke: #0d6efd;
    }
    70% {
        stroke-dashoffset: 0;
        stroke: #28a745;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #28a745;
    }
}

/* Circular Error Animation */
@keyframes circleError {
    0% {
        stroke-dashoffset: 339.292;
        stroke: #dc3545;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #dc3545;
    }
}

/* Checkmark Animation */
@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Crossmark Animation */
@keyframes crossmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* =============== MODAL STYLES =============== */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 25px;
    border: none;
}

.modal-header.bg-primary { 
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important; 
}
.modal-header.bg-success { 
    background: linear-gradient(135deg, #28a745, #218838) !important; 
}
.modal-header.bg-danger { 
    background: linear-gradient(135deg, #dc3545, #c82333) !important; 
}

.modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 30px 25px;
    text-align: center;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.modal-footer .btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
}

.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
}

.modal-backdrop.show {
    opacity: 0.7;
    background: linear-gradient(135deg, #0d6efd, #6c63ff);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .signup-card-horizontal {
        max-width: 500px;
        min-height: auto;
        flex-direction: column;
    }
    
    .signup-left, .signup-right {
        padding: 30px 25px;
    }
    
    .signup-left {
        border-radius: 20px 20px 0 0;
    }
    
    .signup-right {
        border-radius: 0 0 20px 20px;
    }
    
    .logo-large {
        font-size: 3rem;
    }
    
    .signup-left h2 {
        font-size: 1.5rem;
    }
    
    .signup-left p {
        font-size: 0.9rem;
    }
    
    .features-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .signup-card-horizontal {
        border-radius: 15px;
    }
    
    .signup-left, .signup-right {
        padding: 25px 20px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col-md-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .form-control {
        padding: 10px 15px;
    }
    
    .role-option {
        min-height: 80px;
        padding: 15px;
    }
    
    .role-option i {
        font-size: 24px;
    }
    
    .role-option h6 {
        font-size: 0.9rem;
    }
    
    .circle-progress-container,
    .circle-error-container {
        width: 100px;
        height: 100px;
    }
    
    .circle-checkmark,
    .circle-crossmark {
        font-size: 40px;
    }
}

/* =============== SCROLLBAR STYLING =============== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}


/* Force all text on left side to be white */
.signup-left .text-muted,
.signup-left p.text-muted,
.signup-left .small.text-muted {
    color: white !important;
    opacity: 0.95;
}

/* Make the "Already registered?" text white */
.signup-left .text-muted.small {
    color: white !important;
    opacity: 0.9;
}