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

body {
    background-color: #E8EBF6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 0.5rem 2rem;
    font-size: .875rem;
    height: 64px;
    display: none;
}

/* Left side */
.nav-left {
    display: flex;
    align-items: center;
    gap: 8rem;
}

.nav-left a {
    margin-left: 10rem;
}

.nav-left a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

/* Search bar */
.search-box {
    display: flex;
    align-items: center;
    background: #f6f7fb;
    border-radius: 10px;
    padding: 0.3rem 0.6rem;
    width: 320px;
    height: 40px;
    border: 1.2px solid transparent;
    transition: border-color 0.4s ease;
}

.search-box:focus-within {
    border-color: #0b3c7c;
    background: #fff;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    margin-left: 0.3rem;
    width: 100%;
    font-size: 17px;
}

.search-icon {
    width: 22px;   
    height: 22px;
    object-fit: contain;
    opacity: 0.7;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.nav-right div {
    margin-right: 6rem;
}

.btn-login {
    background: #0b3c7c;
    color: #fff !important;
    padding: 0.8rem 1.1rem;
    border-radius: 20px;
    transition: 0.3s ease;
    margin-left: 1rem;
}

.btn-login:hover {
    background: #092d5c;
}

/* Sign up section */
.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 410px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-img {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    height: 94px;
    width: 212px;
    border-radius: 15px;
    background-image: url("img/Stamford\ top\ img.jpg");
    background-size: cover;
    background-position: center;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

h1 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 32px;
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}


.org-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.org-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.org-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent); */
    transition: left 0.5s ease;
}

.org-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.org-option:hover::before {
    left: 100%;
}

.org-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.org-option:nth-child(1) .org-icon {
    background-image: url(img/stamford-icon.png);
}

.org-option:nth-child(2) .org-icon {
    background-image: url(img/future5-icon.png);
}


.org-details {
    flex: 1;
}

.org-details h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.org-details p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.org-arrow {
    color: #cbd5e0;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.org-option:hover .org-arrow {
    color: #667eea;
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .container {
        padding: 24px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .org-option {
        gap: 12px;
        padding: 16px;
    }
    
    .org-details h3 {
        font-size: 16px;
    }
}
.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.3px solid #e5e5e5;
    border-radius: 8px;
    font-size: 12px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
    margin-left: 3px;
}

.checkbox {
    margin-right: 8px;
}

.forgot-password {
    float: right;
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    margin-top: .96rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.primary-btn {
    width: 100%;
    background-color: #667eea;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background-color 0.2s;
}

.primary-btn:hover:not(:disabled) {
    background-color: #4863dc;
    transition: 0.2s;
}

.primary-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


.google-btn {
    width: 100%;
    background-image: url('img/google\ signup.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    /* background-repeat: no-repeat;  */
    border: none;
    border-radius: 10px;
    padding: 13px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    height: 43px;
    position: relative;
    border: solid 1.2px #e5e5e5;
}

/* Remove the emoji/text content */
.google-btn::before {
    content: "";
}

.google-btn:hover {
    border-color: #667eea;
    transition: 0.2s;
}
.auth-switch {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    overflow: hidden;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    margin-left: 4px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.home-page {
    text-align: center;
    padding: 60px 32px;
}

.welcome-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 16px;
}

.welcome-subtitle {
    font-size: 18px;
    color: #666;
}

/* Error message styling */
.error-message {
    color: #ff4444;
    background: #ffebee;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #ffcdd2;
    text-align: center;
}

/* beta tag  */
.beta-tag {
    position: fixed;
    bottom: 20px;
    left: 50px;
    color: #667eea;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1000;
    cursor: default;
}

.verification-content {
    max-width: 500px;
    margin: 0 auto;
}

.secondary-btn {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.secondary-btn:hover {
    background: #3b82f6;
    color: white;
}

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

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #4b5563;
}

.toggle-password:focus {
    outline: none;
    color: #3b82f6;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.toggle-password.visible .eye-icon {
    color: #3b82f6;
}

/* Password Requirements */
.password-requirements {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    padding-left: 4px;
}

/* Caps Lock Warning */
.caps-lock-warning {
    display: none;
    font-size: 12px;
    color: #f59e0b;
    margin-top: 6px;
    padding: 8px 12px;
    background: #fffbeb;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

.caps-lock-warning.show {
    display: block;
}

/* Email Validation Feedback */
.form-input.valid {
    border-color: #10b981;
}

.form-input.invalid {
    border-color: #ef4444;
}

.form-input:focus.valid {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input:focus.invalid {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Auto-fill styling */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1f2937 !important;
}

/* Social Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 14px;
}

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

.login-divider span {
    padding: 0 12px;
}

/* Loading spinner for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}