/* Super Market Billing - Modern Registration Page */
:root {
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-10: rgba(37, 99, 235, 0.1);
    --primary-blue-20: rgba(37, 99, 235, 0.2);
    --primary-blue-5: rgba(37, 99, 235, 0.05);
    --light-blue-bg: #f0f9ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --warning-orange: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    clip-path: ellipse(100% 60% at 50% 0%);
    opacity: 0.1;
    z-index: 0;
}

/* Register Card Container */
.register-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Panel - Blue Side */
.left-panel {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
    color: var(--white);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.left-panel i {
    font-size: 80px;
    margin-bottom: 25px;
    display: inline-block;
    animation: floatIcon 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.left-panel h2 {
    font-weight: 800;
    font-size: 2.25rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.left-panel p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Feature List in Left Panel */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Right Panel - Registration Form */
.col-md-7 {
    padding: 50px 40px !important;
    background: var(--white);
}

.form-title {
    font-weight: 800;
    color: var(--primary-blue-dark);
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 2px;
}

.form-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.required-label::after {
    content: '*';
    color: var(--danger-red);
    margin-left: 4px;
}

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-10);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Mobile Number Field Container */
.mobile-input-container {
    position: relative;
}

.mobile-input-container::before {
    content: '+91';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
    font-weight: 500;
    z-index: 1;
    pointer-events: none;
}

.mobile-input-container .form-control {
    padding-left: 55px;
}

/* Mobile Number Validation */
.mobile-validation {
    display: none;
    margin-top: 6px;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: var(--radius);
    animation: fadeIn 0.3s ease;
}

.mobile-validation.valid {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mobile-validation.invalid {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.mobile-validation i {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Input States */
.form-control.valid {
    border-color: var(--success-green);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: 45px;
}

.form-control.invalid {
    border-color: var(--danger-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: 45px;
}

/* Character Counter */
.char-counter {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: right;
    margin-top: 4px;
    height: 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.char-counter i {
    font-size: 0.7rem;
}

.char-counter.valid {
    color: var(--success-green);
}

.char-counter.invalid {
    color: var(--danger-red);
}

/* Animation for validation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.form-control.shake {
    animation: shake 0.5s ease-in-out;
}

/* Password Input Container */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    z-index: 10;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.password-toggle:hover {
    color: var(--primary-blue);
    background: var(--primary-blue-5);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Adjust input padding when toggle is present */
.password-input-container .form-control {
    padding-right: 50px;
}

/* Password Strength Indicator */
.password-strength-container {
    margin-top: 8px;
}

.password-strength {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-bottom: 4px;
    overflow: hidden;
    position: relative;
}

.strength-meter {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-meter.weak {
    width: 30%;
    background: var(--danger-red);
}

.strength-meter.fair {
    width: 60%;
    background: var(--warning-orange);
}

.strength-meter.good {
    width: 80%;
    background: var(--primary-blue-light);
}

.strength-meter.strong {
    width: 100%;
    background: var(--success-green);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-align: right;
    transition: color 0.3s ease;
}

/* Requirements List */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.password-requirements li {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.password-requirements li i {
    font-size: 0.7rem;
    width: 14px;
}

.password-requirements li.valid {
    color: var(--success-green);
}

.password-requirements li.invalid {
    color: var(--gray-400);
}

/* Textarea */
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Register Button */
.btn-register {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-register:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, var(--gray-400) 0%, var(--gray-500) 100%);
}

.btn-register:active:not(:disabled) {
    transform: translateY(0);
}

.btn-register i {
    font-size: 1.2rem;
}

/* Login Link */
.text-center a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.text-center a:hover {
    color: var(--primary-blue-dark);
    text-decoration: none;
}

.text-center a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.text-center a:hover::after {
    width: 100%;
}

/* Form Row Spacing */
.row {
    margin-left: -8px;
    margin-right: -8px;
}

.col-md-6,
.col-md-12 {
    padding-left: 8px;
    padding-right: 8px;
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: var(--success-green);
}

.form-control.is-invalid {
    border-color: var(--danger-red);
}

/* Responsive Design */
@media (max-width: 992px) {
    .register-card {
        max-width: 700px;
        margin: 0 auto;
    }

    .left-panel {
        min-height: 400px;
        padding: 40px 30px;
    }

    .left-panel h2 {
        font-size: 2rem;
    }

    .col-md-7 {
        padding: 40px 30px !important;
    }
}

@media (max-width: 768px) {
    .register-card {
        border-radius: var(--radius-xl);
    }

    .left-panel {
        min-height: 300px;
        text-align: center;
        padding: 30px 20px;
    }

    .left-panel i {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .left-panel h2 {
        font-size: 1.75rem;
    }

    .left-panel p {
        font-size: 1rem;
    }

    .col-md-7 {
        padding: 30px 20px !important;
    }

    .form-title {
        font-size: 1.75rem;
    }

    .btn-register {
        padding: 14px;
    }

    .mobile-input-container::before {
        left: 12px;
    }

    .mobile-input-container .form-control {
        padding-left: 50px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .register-card {
        border-radius: var(--radius-lg);
    }

    .left-panel {
        min-height: 250px;
        padding: 25px 15px;
    }

    .left-panel i {
        font-size: 50px;
    }

    .left-panel h2 {
        font-size: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .col-md-7 {
        padding: 25px 15px !important;
    }

    .password-toggle {
        right: 12px;
        font-size: 1rem;
    }

    .password-input-container .form-control {
        padding-right: 45px;
    }

    .mobile-input-container::before {
        left: 10px;
        font-size: 0.9rem;
    }

    .mobile-input-container .form-control {
        padding-left: 45px;
    }
}

/* Animation for form elements */
.form-control,
.btn-register {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for form controls */
.form-control:nth-child(1) {
    animation-delay: 0.1s;
}

.form-control:nth-child(2) {
    animation-delay: 0.2s;
}

.form-control:nth-child(3) {
    animation-delay: 0.3s;
}

.form-control:nth-child(4) {
    animation-delay: 0.4s;
}

.form-control:nth-child(5) {
    animation-delay: 0.5s;
}

.form-control:nth-child(6) {
    animation-delay: 0.6s;
}

.btn-register {
    animation-delay: 0.7s;
}

/* Loading State for Button */
.btn-register.loading {
    position: relative;
    color: transparent;
}

.btn-register.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toggle Animation */
.password-toggle i {
    transition: transform 0.3s ease;
}

.password-toggle.active i.fa-eye {
    transform: scale(1.1);
}

.password-toggle.active i.fa-eye-slash {
    transform: scale(1.1);
}