/* Modern Glassmorphism Signup - DHA Bahawalpur */

/* CSS Variables */
:root {
    --primary-color: #ea5547;
    --secondary-color: #68482f;
    --accent-color: #fdc62c;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --border-light: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background with DHA Image */
.signup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: url('../../images/DHAB_bg.jpg') center/cover no-repeat;
}

.signup-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Main Container */
.signup-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Signup Card - Glassmorphism */
.signup-card {
    width: 100%;
    max-width: 1300px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: cardEntry 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes cardEntry {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.signup-card.loaded {
    transform: translateY(0);
    opacity: 1;
}

/* Left Side - Branding */
.card-left {
    background: transparent;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(253, 198, 44, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(234, 85, 71, 0.1) 0%, transparent 50%);
    animation: brandShimmer 12s ease-in-out infinite;
}

@keyframes brandShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Brand Content */
.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: brandSlideIn 1s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
    background: transparent;
    border: none;
    padding: 2rem 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: none;
}

.brand-content:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: none;
    border: none;
}

@keyframes brandSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-logo {
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.brand-logo img {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.1);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.brand-content:hover .welcome-title {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.brand-content:hover .subtitle {
    color: var(--accent-color);
    text-shadow: 0 2px 8px rgba(253, 198, 44, 0.4);
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.brand-content:hover .description {
    opacity: 1;
    transform: translateY(-2px);
}

/* Decorative Shapes */
.decorative-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(253, 198, 44, 0.15);
    animation: shapeFloat 8s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 70%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 35px;
    height: 35px;
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Right Side - Form */
.card-right {
    padding: 3rem 2.5rem;
    background: transparent;
    animation: formSlideIn 1s ease-out;
    animation-delay: 0.9s;
    animation-fill-mode: both;
    position: relative;
}

.card-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
}

.form-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* OTP Toggle */
.otp-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.otp-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.otp-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.3);
    transform: translateY(-1px);
}

.otp-btn i {
    font-size: 0.8rem;
}

/* Input Rows */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper.focused {
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-wrapper.focused .input-icon {
    color: rgba(255, 255, 255, 0.9);
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    color: white;
}

.input-wrapper input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Phone Tooltip */
.phone-tooltip {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
}

.tooltip-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: help;
    padding: 0.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tooltip-icon:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.tooltip-content {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 1rem;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.phone-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Password Eye */
.password-eye {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-eye:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Password Match */
.password-match {
    margin-top: 0.5rem;
}

.match-text {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Terms Section */
.terms-section {
    margin-bottom: 2rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    text-align: left;
}

.terms-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.terms-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: var(--primary-color);
}

.terms-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Signup Button */
.signup-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(234, 85, 71, 0.3);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(234, 85, 71, 0.4);
}

.signup-btn:active {
    transform: translateY(0);
}

/* Login Link */
.login-link {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-link p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Support Section */
.support-section {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.support-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.support-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.support-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.support-links a:hover {
    background: rgba(234, 85, 71, 0.08);
    transform: translateY(-1px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .signup-container {
        padding: 1.5rem;
    }
    
    .signup-card {
        max-width: 1000px;
    }
    
    .card-left, .card-right {
        padding: 2.5rem 2rem;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .brand-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .signup-card {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .card-left {
        order: 1;
        padding: 2rem 1.5rem;
    }
    
    .card-right {
        order: 2;
        padding: 2rem 1.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .brand-logo img {
        max-width: 140px;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
    }
    
    .brand-content {
        padding: 1.5rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile Terms Single Line Fix */
    .terms-checkbox {
        align-items: center;
        gap: 0.6rem;
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .checkmark {
        margin-top: 0;
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* Mobile Support Links Fix */
    .support-links {
        gap: 1rem;
        flex-direction: row;
        justify-content: center;
    }

    .support-links a {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
        justify-content: center;
        min-width: 120px;
        flex: 1;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 1rem;
    }
    
    .card-left, .card-right {
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .brand-logo img {
        max-width: 120px;
    }
    
    .otp-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .input-wrapper input {
        padding: 0.9rem 0.9rem 0.9rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .signup-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .support-links {
        flex-direction: row;
        gap: 0.6rem;
        justify-content: center;
    }
    
    .brand-content {
        padding: 1.2rem;
    }

    /* Extra Small Screen Single Line Terms */
    .terms-checkbox {
        gap: 0.5rem;
        font-size: 0.65rem;
        line-height: 1.1;
        align-items: center;
    }

    .checkmark {
        width: 12px;
        height: 12px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .support-links a {
        font-size: 0.7rem;
        padding: 0.5rem 0.6rem;
        min-width: 100px;
        flex: 1;
        max-width: 120px;
    }

    .support-section p {
        font-size: 0.7rem;
    }
}

/* Extra Large Desktop Screens */
@media (min-width: 2200px) {
    .signup-container {
        padding: 5rem;
    }
    
    .signup-card {
        max-width: 2000px;
        border-radius: 35px;
    }
    
    .card-left, .card-right {
        padding: 6rem 5rem;
    }
    
    .welcome-title {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .description {
        font-size: 1.4rem;
        line-height: 1.8;
    }
    
    .brand-logo {
        margin-bottom: 2.5rem;
    }
    
    .brand-logo img {
        max-width: 250px;
    }
    
    .form-header h3 {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }
    
    .form-header p {
        font-size: 1.2rem;
    }
    
    .form-header {
        margin-bottom: 2.5rem;
    }
    
    .otp-toggle {
        padding: 0.5rem;
        margin-bottom: 2rem;
        border-radius: 12px;
    }
    
    .otp-btn {
        padding: 1.4rem 1.8rem;
        font-size: 1.2rem;
        border-radius: 10px;
    }
    
    .input-wrapper input {
        padding: 1.6rem 1.6rem 1.6rem 4rem;
        font-size: 1.2rem;
        border-radius: 16px;
    }
    
    .input-icon {
        font-size: 1.2rem;
        left: 1.6rem;
    }
    
    .password-eye {
        padding: 0.7rem;
        right: 1.6rem;
    }
    
    .phone-tooltip {
        right: 1.6rem;
    }
    
    .signup-btn {
        padding: 1.6rem 3rem;
        font-size: 1.2rem;
        border-radius: 16px;
        margin-bottom: 2rem;
    }
    
    .terms-checkbox {
        font-size: 1.1rem;
        gap: 1rem;
    }
    
    .checkmark {
        width: 24px;
        height: 24px;
    }
    
    .support-section {
        padding-top: 2rem;
    }
    
    .support-section p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .support-links {
        gap: 2.5rem;
    }
    
    .support-links a {
        font-size: 1.1rem;
        padding: 1rem 1.6rem;
        border-radius: 10px;
    }
    
    .brand-content {
        padding: 5rem 3rem;
    }
    
    .input-row {
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .password-strength, .password-match {
        margin-top: 0.8rem;
    }
    
    .strength-bar {
        height: 4px;
    }
    
    .terms-section {
        margin-bottom: 3rem;
    }
    
    .login-link {
        margin-bottom: 2.5rem;
    }
    
    .login-link p {
        font-size: 1rem;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-content p {
        font-size: 1.2rem;
    }
}

@media (min-width: 1440px) and (max-width: 2199px) {
    .signup-container {
        padding: 3rem;
    }
    
    .signup-card {
        max-width: 1400px;
    }
    
    .card-left, .card-right {
        padding: 3.5rem 3rem;
    }
    
    .welcome-title {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .brand-logo img {
        max-width: 180px;
    }
    
    .form-header h3 {
        font-size: 2rem;
    }
    
    .input-wrapper input {
        font-size: 0.95rem;
        padding: 1.1rem 1.1rem 1.1rem 3rem;
    }
    
    .signup-btn {
        font-size: 0.95rem;
        padding: 1.1rem 1.8rem;
    }
    
    .brand-content {
        padding: 2.5rem 1.8rem;
    }
} 