/* Authentication Pages - New Design matching VERKAT theme */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body & Background */
.auth-page-new {
    background: linear-gradient(135deg, 
        var(--dark-blue) 0%, 
        #1a3d7c 25%, 
        #0d1f3d 50%, 
        #1a3d7c 75%, 
        var(--dark-blue) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Ensure footer has proper spacing */
.auth-page-new .footer {
    margin-top: auto;
}

.auth-page-new::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(200, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(26, 61, 124, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

/* Auth Page Header Override */
.auth-page-new .header {
    background: linear-gradient(135deg, rgba(13, 31, 61, 0.98), rgba(26, 61, 124, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.auth-page-new .header .logo-text {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-page-new .header .logo-ampersand {
    text-shadow: 0 0 10px rgba(200, 255, 0, 0.5);
}

/* Auth Container */
.auth-container-new {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px 2rem; /* Top padding for fixed header, bottom for footer */
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px); /* Account for header and footer height */
}

/* Auth Grid - Split Layout */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: rgba(26, 61, 124, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Left Side - Image/Info */
.auth-image-side {
    background: linear-gradient(135deg, rgba(13, 31, 61, 0.9), rgba(26, 61, 124, 0.8)),
                url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?w=800&h=1000&fit=crop&auto=format') center/cover;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(200, 255, 0, 0.1) 0%, 
        rgba(13, 31, 61, 0.8) 50%, 
        rgba(26, 61, 124, 0.9) 100%);
    z-index: 1;
}

.auth-image-side.register {
    background: linear-gradient(135deg, rgba(13, 31, 61, 0.9), rgba(26, 61, 124, 0.8)),
                url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=800&h=1000&fit=crop&auto=format') center/cover;
}

.auth-image-side.register::before {
    background: linear-gradient(135deg, 
        rgba(200, 255, 0, 0.15) 0%, 
        rgba(13, 31, 61, 0.7) 50%, 
        rgba(26, 61, 124, 0.85) 100%);
}

.auth-overlay {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.auth-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.auth-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(200, 255, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 255, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 255, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    background: rgba(200, 255, 0, 0.2);
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 10px 30px rgba(200, 255, 0, 0.2);
    border-color: var(--primary-color);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
    color: #b8e600;
}

.feature-item span {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover span {
    color: var(--primary-color);
}

/* Right Side - Form */
.auth-form-side {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(200, 255, 0, 0.02) 0%, 
        rgba(13, 31, 61, 0.1) 50%, 
        rgba(26, 61, 124, 0.05) 100%);
    z-index: 1;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Auth Header */
.auth-header-new {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.auth-header-new h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-header-new p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Form */
.auth-form-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.form-row-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-new {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeInUp 0.6s ease-out both;
}

.form-group-new:nth-child(1) { animation-delay: 0.1s; }
.form-group-new:nth-child(2) { animation-delay: 0.2s; }
.form-group-new:nth-child(3) { animation-delay: 0.3s; }
.form-group-new:nth-child(4) { animation-delay: 0.4s; }
.form-group-new:nth-child(5) { animation-delay: 0.5s; }
.form-group-new:nth-child(6) { animation-delay: 0.6s; }

.form-group-new label {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.input-wrapper:hover {
    transform: translateY(-2px);
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.input-wrapper input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.input-wrapper input:focus + i {
    color: #b8e600;
    transform: scale(1.1);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff6b6b 25%, rgba(255, 255, 255, 0.1) 25%);
}

.password-strength.medium {
    background: linear-gradient(90deg, #ffa726 0%, #ffa726 50%, rgba(255, 255, 255, 0.1) 50%);
}

.password-strength.strong {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 75%, rgba(255, 255, 255, 0.1) 75%);
}

.password-strength.very-strong {
    background: var(--primary-color);
}

/* Form Options */
.form-options-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.checkbox-label-new input[type="checkbox"] {
    display: none;
}

.checkmark-new {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label-new input[type="checkbox"]:checked + .checkmark-new {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label-new input[type="checkbox"]:checked + .checkmark-new::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid var(--dark-blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label-new a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.checkbox-label-new a:hover {
    color: #b8ff00;
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    text-shadow: 0 0 8px rgba(200, 255, 0, 0.3);
}

.forgot-password-new {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.forgot-password-new:hover {
    text-decoration: underline;
    color: #b8e600;
}

/* Submit Button */
.btn-auth-primary {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #b8e600);
    color: var(--dark-blue);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    box-shadow: 0 5px 20px rgba(200, 255, 0, 0.2);
}

.btn-auth-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-auth-primary:hover::before {
    left: 100%;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #b8e600, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(200, 255, 0, 0.4);
}

.btn-auth-primary:active {
    transform: translateY(-1px);
}

.btn-auth-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: rgba(200, 255, 0, 0.3);
}

/* Error/Success Messages */
.auth-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.auth-success {
    background: rgba(200, 255, 0, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Footer */
.auth-footer-new {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer-new p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.auth-footer-new a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer-new a:hover {
    color: #b8e600;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .auth-image-side {
        display: none;
    }
    
    .auth-form-side {
        padding: 2rem;
    }
    
    .auth-container-new {
        padding: 100px 1rem 60px 1rem;
        min-height: calc(100vh - 160px);
    }
}

@media (max-width: 768px) {
    .auth-container-new {
        padding: 80px 1rem 40px 1rem;
        min-height: calc(100vh - 120px);
    }
    
    .auth-grid {
        border-radius: 15px;
    }
    
    .auth-form-side {
        padding: 1.5rem;
    }
    
    .auth-header-new h1 {
        font-size: 1.75rem;
    }
    
    .form-row-new {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-container-new {
        padding: 70px 0.5rem 30px 0.5rem;
        min-height: calc(100vh - 100px);
    }
    
    .auth-form-container {
        max-width: 100%;
    }
    
    .auth-header-new h1 {
        font-size: 1.5rem;
    }
    
    .auth-header-new p {
        font-size: 0.9rem;
    }
    
    .input-wrapper input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .input-wrapper i {
        left: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-auth-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .form-options-new {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.auth-grid {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.input-wrapper input:focus,
.btn-auth-primary:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(200, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(200, 255, 0, 0.6), 0 0 30px rgba(200, 255, 0, 0.4);
    }
}