/* AH Private Batch - Custom Password Reset Page CSS */
/* Modern, Beautiful Design with Bengali Support */

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-rgb: 59, 130, 246;
    --accent-color: #06b6d4;
    --accent-rgb: 6, 182, 212;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Background Colors */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: #f8fafc;
    --bg-secondary-rgb: 248, 250, 252;

    /* Card Colors */
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-rgb: 255, 255, 255;
    --input-bg: #ffffff;

    /* Border Colors */
    --border-color: #e5e7eb;

    /* Shadows */
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);

    /* Fonts */
    --font-bangla: 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --bg-secondary: #1e293b;
    --bg-secondary-rgb: 30, 41, 59;
    --card-bg: rgba(30, 41, 59, 0.95);
    --card-bg-rgb: 30, 41, 59;
    --input-bg: #334155;
    --border-color: #374151;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-bangla), 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -75px;
    animation-delay: 4s;
}

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

.shape {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.shape-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.shape-4 {
    top: 40%;
    right: 25%;
    animation-delay: 4.5s;
}

.shape-5 {
    bottom: 20%;
    right: 10%;
    animation-delay: 6s;
}

/* Main Container */
.reset-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Header */
.reset-header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon {
    font-size: 1.8rem;
    color: white;
}

.logo-text {
    text-align: left;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reset Card */
.reset-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease;
}

.reset-card-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg,
            rgba(var(--primary-rgb), 0.05),
            rgba(var(--accent-rgb), 0.05));
    border-bottom: 1px solid var(--border-color);
}

.reset-icon {
    margin-bottom: 1rem;
}

.icon-bg {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-medium);
    animation: bounce 1s ease;
}

.reset-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reset-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.reset-card-body {
    padding: 2rem;
}

/* Reset States */
.reset-state {
    text-align: center;
}

.state-icon {
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.state-icon.success .success-icon {
    color: var(--success-color);
    animation: bounceIn 0.8s ease;
}

.state-icon.error .error-icon {
    color: var(--error-color);
    animation: shake 0.6s ease;
}

.state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.state-title.success {
    color: var(--success-color);
}

.state-title.error {
    color: var(--error-color);
}

.state-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Loading Spinner */
.loading-spinner-small {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Form Styles */
.reset-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    background: var(--card-bg);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    background: var(--bg-secondary);
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Password Requirements */
.password-requirements {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.requirements-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.requirements-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.requirement:last-child {
    margin-bottom: 0;
}

.req-icon {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.requirement.valid .req-icon {
    color: var(--success-color);
}

.requirement.valid .req-text {
    color: var(--success-color);
}

.req-text {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

/* Form Error */
.form-error {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading-text {
    opacity: 1;
}

.btn-loading-text {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Action Buttons */
.success-actions,
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn,
.error-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Footer */
.reset-footer {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 0.9rem;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.toast-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.2;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .reset-container {
        padding: 1rem;
    }

    .reset-card {
        border-radius: 16px;
        margin: 0;
    }

    .reset-card-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .reset-card-body {
        padding: 1.5rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-text {
        text-align: center;
    }

    .logo-title {
        font-size: 1.5rem;
    }

    .reset-title {
        font-size: 1.25rem;
    }

    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-btn .btn-text {
        display: none;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .success-actions,
    .error-actions {
        flex-direction: column;
    }

    .footer-content {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reset-container {
        padding: 0.5rem;
    }

    .reset-card-header {
        padding: 1rem;
    }

    .reset-card-body {
        padding: 1rem;
    }

    .icon-bg {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .form-input {
        padding: 0.75rem 2.5rem 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .bg-circle {
    opacity: 0.05;
}

[data-theme="dark"] .shape {
    opacity: 0.05;
}

[data-theme="dark"] .reset-card {
    background: rgba(var(--card-bg-rgb), 0.95);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .password-requirements {
    background: rgba(var(--bg-secondary-rgb), 0.8);
}

[data-theme="dark"] .floating-btn {
    background: rgba(var(--card-bg-rgb), 0.95);
    backdrop-filter: blur(20px);
}