/* =================================================================
   ELECTROHUB AUTHENTICATION PAGES
   Beautiful, Modern, Animated Login/Register Pages
   ================================================================= */

/* =================================================================
   AUTH PAGE LAYOUT
   ================================================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #020617 0%, #0F172A 50%, #1E293B 100%);
}

/* =================================================================
   ANIMATED BACKGROUND
   ================================================================= */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.15) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Animated Shapes */
.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2563EB, #22D3EE);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #22D3EE, #2563EB);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #22D3EE, #2563EB);
    bottom: 10%;
    left: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #7C3AED, #2563EB);
    top: 20%;
    right: 10%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    color: rgba(37, 99, 235, 0.1);
    font-size: 40px;
    animation: floatIcon 15s infinite ease-in-out;
}

.icon-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.icon-2 {
    top: 70%;
    right: 20%;
    font-size: 50px;
    animation-delay: 3s;
}

.icon-3 {
    bottom: 20%;
    left: 25%;
    font-size: 35px;
    animation-delay: 6s;
}

.icon-4 {
    top: 40%;
    right: 15%;
    font-size: 45px;
    animation-delay: 9s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.2;
    }
}

/* =================================================================
   AUTH CONTAINER & CARD
   ================================================================= */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 100px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563EB, #22D3EE, #2563EB);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

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

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

.register-card {
    max-width: 550px;
}

/* =================================================================
   AUTH LOGO SECTION
   ================================================================= */
.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2563EB, #22D3EE);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    animation: pulse 2s ease infinite;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #2563EB, #22D3EE);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.forgot-icon {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
}

.forgot-icon::before {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
}

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

.auth-logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #020617;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #2563EB, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: #64748B;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* =================================================================
   AUTH FORM
   ================================================================= */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 10px;
}

.form-group label i {
    margin-right: 8px;
    color: #2563EB;
}

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

.input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 48px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    color: #1E293B;
    background: #F8FAFC;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #2563EB;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.input-wrapper input::placeholder {
    color: #94A3B8;
}

/* Input Icons */
.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 18px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: #2563EB;
}

/* Toggle Password */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #2563EB;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #EF4444, #F59E0B, #10B981);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    font-size: 13px;
    color: #64748B;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    position: relative;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #2563EB, #22D3EE);
    border-color: #2563EB;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-group .checkbox-label {
    font-size: 14px;
    line-height: 1.6;
}

/* Links */
.forgot-link,
.auth-link,
.terms-link {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.forgot-link:hover,
.auth-link:hover,
.terms-link:hover {
    color: #22D3EE;
    text-decoration: underline;
}

/* =================================================================
   SUBMIT BUTTON
   ================================================================= */
.btn-submit {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #2563EB, #22D3EE);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    margin-bottom: 25px;
}

.btn-submit::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.5s ease;
}

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

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .btn-loader {
    display: block;
}

/* =================================================================
   DIVIDER
   ================================================================= */
.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #CBD5E1, transparent);
}

.divider span {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
}

/* =================================================================
   SOCIAL LOGIN
   ================================================================= */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    padding: 14px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 18px;
}

.social-btn.google {
    color: #EA4335;
}

.social-btn.google:hover {
    background: #EA4335;
    color: white;
    border-color: #EA4335;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

.social-btn.facebook {
    color: #1877F2;
}

.social-btn.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* =================================================================
   AUTH FOOTER
   ================================================================= */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #E2E8F0;
}

.auth-footer p {
    color: #64748B;
    font-size: 15px;
    margin: 0;
}

/* =================================================================
   SUCCESS MESSAGE
   ================================================================= */
.success-message {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.5s ease;
}

.success-message i {
    font-size: 24px;
}

.success-message p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   HELP SECTION
   ================================================================= */
.help-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E2E8F0;
}

.help-section h3 {
    font-size: 16px;
    color: #1E293B;
    margin-bottom: 15px;
    text-align: center;
}

.help-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.help-link:hover {
    background: white;
    border-color: #2563EB;
    color: #2563EB;
    transform: translateY(-2px);
}

.help-link i {
    font-size: 16px;
}

/* =================================================================
   BACK TO HOME
   ================================================================= */
.back-home {
    text-align: center;
    margin-top: 25px;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-home a:hover {
    color: #2563EB;
    background: #F1F5F9;
}

/* =================================================================
   MOBILE RESPONSIVE STYLES
   ================================================================= */

/* Tablets */
@media (max-width: 768px) {
    .auth-card {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .auth-logo h1 {
        font-size: 28px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .shape {
        filter: blur(40px);
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    .auth-page {
        padding: 15px;
    }
    
    .auth-card {
        padding: 35px 25px;
        border-radius: 18px;
    }
    
    .auth-logo h1 {
        font-size: 26px;
    }
    
    .auth-logo p {
        font-size: 15px;
    }
    
    .logo-icon {
        width: 65px;
        height: 65px;
        font-size: 32px;
        border-radius: 16px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .input-wrapper input {
        padding: 15px 45px 15px 45px;
        font-size: 15px;
    }
    
    .btn-submit {
        padding: 16px 25px;
        font-size: 16px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .floating-icon {
        font-size: 30px;
    }
    
    .icon-2 {
        font-size: 35px;
    }
    
    .shape-1,
    .shape-4 {
        width: 200px;
        height: 200px;
    }
    
    .shape-2,
    .shape-5 {
        width: 180px;
        height: 180px;
    }
    
    .help-options {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-logo h1 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .input-wrapper input {
        padding: 14px 40px 14px 40px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .social-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Landscape Mobile */
@media (max-width: 812px) and (orientation: landscape) {
    .auth-page {
        padding: 20px 15px;
    }
    
    .auth-card {
        max-height: 90vh;
        overflow-y: auto;
        padding: 25px 30px;
    }
    
    .auth-logo {
        margin-bottom: 25px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
        margin-bottom: 15px;
    }
    
    .auth-logo h1 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .auth-logo p {
        font-size: 13px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .floating-icons {
        display: none;
    }
}
