/* Dentist Journey - Password Reset Path Styles
   Modern, responsive and interactive design for password reset flow
   Maintains visual consistency with main site while adding futuristic elements
*/

:root {
    /* Import core variables from main CSS for consistency */
    --primary-blue: #0077B6;
    --secondary-teal: #20B2AA;
    --dentist-blue: #2193b0;
    --dentist-light-blue: #6dd5ed;
    --dentist-orange: #ff7e5f;
    --text-charcoal: #333333;
    --background-white: #FFFFFF;
    --background-gray: #F8F9FA;
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --box-shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --transition-normal: all 0.3s ease;
    
    /* New variables specific to password reset journey */
    --reset-gradient: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    --reset-gradient-hover: linear-gradient(135deg, #1c809c 0%, #5bc0d6 100%);
    --reset-backdrop: rgba(33, 147, 176, 0.05);
    --reset-highlight: rgba(33, 147, 176, 0.2);
    --reset-success: #4CAF50;
    --reset-warning: #ff7e5f;
    --reset-info: #2193b0;
}

/* Password Reset Container Styles */
.password-reset-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 80px 20px 20px;
    background: linear-gradient(to bottom, #f8fbff 0%, #f0f5f9 100%);
    position: relative;
    align-items: center;
    justify-content: flex-start;
}

/* Welcome Section Animation */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
}

.welcome-text {
    color: var(--text-charcoal);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.welcome-section p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

/* Main Card Styling */
.reset-card {
    background: white;
    border-radius: calc(var(--border-radius-md) * 0.8);
    box-shadow: var(--box-shadow-sm);
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.reset-card-header {
    padding: 24px 24px 16px;
    position: relative;
}

.reset-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-charcoal);
    margin: 0 0 8px 0;
    text-align: center;
}

.reset-card-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
    line-height: 1.4;
}

.reset-card-body {
    padding: 0 24px 24px;
}

/* Progress Indicator */
.reset-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.reset-progress:before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.reset-progress-bar {
    position: absolute;
    left: 0;
    top: 12px;
    height: 2px;
    background: var(--reset-gradient);
    z-index: 2;
    transition: width 0.6s ease;
}

.reset-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
}

.reset-step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    color: #999;
    font-size: 11px;
    font-weight: 600;
}

.reset-step.active .reset-step-circle {
    border-color: var(--dentist-blue);
    background: var(--dentist-blue);
    color: white;
    box-shadow: 0 0 0 4px rgba(33, 147, 176, 0.2);
}

.reset-step.completed .reset-step-circle {
    border-color: var(--dentist-blue);
    background: white;
    color: var(--dentist-blue);
}

.reset-step-label {
    font-size: 10px;
    color: #999;
    text-align: center;
    line-height: 1.2;
}

.reset-step.active .reset-step-label,
.reset-step.completed .reset-step-label {
    color: var(--dentist-blue);
    font-weight: 500;
}

/* Status Icons */
.reset-status-icon {
    font-size: 72px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.reset-status-icon.success {
    color: var(--reset-success);
}

.reset-status-icon.warning {
    color: var(--reset-warning);
}

.reset-status-icon.info {
    color: var(--reset-info);
}

.reset-status-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

/* Form Styling */
.reset-form {
    animation: fadeIn 0.5s ease forwards;
}

.reset-form-group {
    margin-bottom: 16px;
    position: relative;
}

.reset-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-charcoal);
    font-size: 12px;
    transition: var(--transition-normal);
}

.reset-input-wrapper {
    position: relative;
}

.reset-input-wrapper i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: var(--transition-normal);
    font-size: 12px;
}

.reset-form-control {
    width: 100%;
    padding: 13px 13px 13px 36px;
    border: 1px solid #eee;
    border-radius: calc(var(--border-radius-md) * 0.8);
    font-size: 13px;
    transition: var(--transition-normal);
    background: #f9f9f9;
    color: var(--text-charcoal);
}

.reset-form-control:focus {
    border-color: var(--dentist-blue);
    background: white;
    box-shadow: 0 0 0 2px rgba(33, 147, 176, 0.1);
    outline: none;
}

.reset-form-control:focus + i {
    color: var(--dentist-blue);
}

/* Password Toggle Button */
.reset-toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 5;
}

.reset-toggle-password:hover {
    color: var(--dentist-blue);
}

/* Helper Text */
.reset-helper-text {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
    line-height: 1.4;
}

.reset-helper-text strong {
    color: var(--dentist-blue);
}

.reset-helper-text ul {
    margin-top: 5px;
    padding-left: 18px;
}

.reset-helper-text li {
    margin-bottom: 3px;
}

/* Alert Styling */
.reset-alert {
    padding: 10px 13px;
    margin-bottom: 16px;
    border-radius: calc(var(--border-radius-md) * 0.8);
    font-size: 11px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeIn 0.3s ease forwards;
}

.reset-alert i {
    margin-top: 2px;
    font-size: 13px;
}

.reset-alert-danger {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.reset-alert-success {
    background-color: rgba(76, 175, 80, 0.08);
    color: #4CAF50;
    border-left: 4px solid #4CAF50;
}

.reset-alert-info {
    background-color: rgba(33, 147, 176, 0.08);
    color: var(--dentist-blue);
    border-left: 4px solid var(--dentist-blue);
}

/* Button Styling */
.reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px !important;
    border-radius: 5px;
    font-weight: 600;
    font-size: 11px !important;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    width: 100%;
    margin-top: 8px;
}

.reset-btn i {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.reset-btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 147, 176, 0.2) !important;
}

.reset-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(33, 147, 176, 0.3) !important;
}

.reset-btn-primary:hover i {
    transform: translateX(3px);
}

.reset-btn-secondary {
    background: white;
    color: var(--dentist-blue);
    border: 2px solid rgba(33, 147, 176, 0.2);
    box-shadow: var(--box-shadow-sm);
}

.reset-btn-secondary:hover {
    transform: translateY(-5px);
    border-color: var(--dentist-blue);
    box-shadow: var(--box-shadow-md);
}

/* Status Info Boxes */
.reset-status-info {
    text-align: center;
    padding: 30px 20px;
    animation: fadeIn 0.5s ease forwards;
}

.reset-status-info h3 {
    margin-bottom: 15px;
    color: var(--text-charcoal);
    font-size: 22px;
    font-weight: 600;
}

.reset-status-info p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

/* Bottom Element */
.reset-bottom-element {
    display: none;
}

/* Back to Login Link */
.reset-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--dentist-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    margin-top: 16px;
    transition: var(--transition-normal);
}

.reset-back-link:hover {
    color: var(--dentist-orange);
}

.reset-back-link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.reset-back-link:hover i {
    transform: translateX(-3px);
}

/* Animated Checkmark for Success */
.reset-checkmark-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.reset-checkmark-circle .background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--reset-success);
    position: absolute;
}

.reset-checkmark-circle .checkmark {
    transform: rotate(45deg);
    height: 40px;
    width: 20px;
    border-bottom: 5px solid white;
    border-right: 5px solid white;
    position: absolute;
    top: 20px;
    left: 30px;
    animation: checkAnimation 0.5s ease-in-out 0.3s forwards;
    opacity: 0;
}

@keyframes checkAnimation {
    0% {
        opacity: 0;
        height: 0;
        width: 0;
    }
    50% {
        opacity: 1;
        height: 0;
        width: 20px;
    }
    100% {
        opacity: 1;
        height: 40px;
        width: 20px;
    }
}

/* Warning Icon Animation */
.reset-warning-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.reset-warning-circle .background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--reset-warning);
    position: absolute;
}

.reset-warning-circle .exclamation {
    position: absolute;
    width: 8px;
    height: 40px;
    background: white;
    top: 15px;
    left: 36px;
    border-radius: 4px;
    animation: exclamationAnimation 0.5s ease-in-out 0.3s forwards;
    opacity: 0;
}

.reset-warning-circle .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    bottom: 15px;
    left: 36px;
    animation: dotAnimation 0.5s ease-in-out 0.6s forwards;
    opacity: 0;
}

@keyframes exclamationAnimation {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dotAnimation {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Email Icon Animation */
.reset-email-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.reset-email-circle .background {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--reset-info);
    position: absolute;
}

.reset-email-circle .envelope {
    position: absolute;
    width: 40px;
    height: 30px;
    border: 4px solid white;
    border-radius: 2px;
    top: 25px;
    left: 20px;
    animation: envelopeAnimation 0.5s ease-in-out 0.3s forwards;
    opacity: 0;
}

.reset-email-circle .envelope:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 16px 0 16px;
    border-color: white transparent transparent transparent;
    transform: translateY(-15px) rotate(180deg);
}

@keyframes envelopeAnimation {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Pulse Animation for buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 147, 176, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 147, 176, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 147, 176, 0);
    }
}

/* Responsive Adjustments */

/* Tablet and smaller laptops (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .password-reset-container {
        padding: 60px 20px 20px;
    }
    
    .reset-card {
        max-width: 380px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .password-reset-container {
        padding: 60px 15px 15px;
    }
    
    .reset-card {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .reset-card-header {
        padding: 20px 20px 12px;
    }
    
    .reset-card-body {
        padding: 0 20px 20px;
    }
    
    .reset-card-title {
        font-size: 16px;
    }
    
    .reset-card-subtitle {
        font-size: 11px;
    }
    
    .reset-progress {
        max-width: 240px;
        margin-bottom: 20px;
    }
    
    .reset-step-label {
        font-size: 9px;
    }
    
    .reset-step-circle {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {
    .password-reset-container {
        padding: 40px 10px 10px;
    }
    
    .reset-card {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .reset-card-header {
        padding: 16px 16px 12px;
    }
    
    .reset-card-body {
        padding: 0 16px 16px;
    }
    
    .reset-card-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .reset-card-subtitle {
        font-size: 10px;
        margin-bottom: 16px;
    }
    
    .reset-progress {
        max-width: 220px;
        margin-bottom: 16px;
    }
    
    .reset-step {
        width: 40px;
    }
    
    .reset-step-circle {
        width: 22px;
        height: 22px;
        font-size: 9px;
        margin-bottom: 5px;
    }
    
    .reset-step-label {
        font-size: 8px;
    }
    
    .reset-progress:before,
    .reset-progress-bar {
        top: 11px;
        height: 2px;
    }
    
    .reset-form-label {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    .reset-form-control {
        padding: 11px 11px 11px 32px;
        font-size: 12px;
        height: 32px;
    }
    
    .reset-input-wrapper i {
        left: 11px;
        font-size: 11px;
    }
    
    .reset-btn {
        padding: 7px 14px;
        font-size: 10px;
        margin-top: 6px;
    }
    
    .reset-btn i {
        font-size: 9px;
    }
    
    .reset-back-link {
        font-size: 11px;
        margin-top: 12px;
    }
    
    .reset-back-link i {
        font-size: 10px;
    }
    
    .reset-alert {
        padding: 8px 11px;
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .reset-alert i {
        font-size: 12px;
    }
}

/* Large screens (1200px and above) */
@media (min-width: 1200px) {
    .password-reset-container {
        padding: 100px 20px 20px;
    }
    
    .reset-card {
        max-width: 420px;
    }
}

/* Extra large screens (1400px and above) */
@media (min-width: 1400px) {
    .reset-card {
        max-width: 450px;
    }
}

/* Short screens - ensure content fits */
@media (max-height: 700px) {
    .password-reset-container {
        padding: 30px 10px 10px;
    }
    
    .reset-card-header {
        padding: 16px 16px 10px;
    }
    
    .reset-card-body {
        padding: 0 16px 16px;
    }
    
    .reset-form-group {
        margin-bottom: 12px;
    }
    
    .reset-form-control {
        padding: 10px 10px 10px 30px;
        height: 30px;
    }
    
    .reset-btn {
        margin-top: 6px;
        padding: 6px 12px;
    }
    
    .reset-progress {
        margin-bottom: 12px;
    }
}