/* 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: 40px 20px;
    background-color: var(--background-white);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(109, 213, 237, 0.05) 0%, transparent 300px),
        radial-gradient(circle at 80% 70%, rgba(255, 126, 95, 0.05) 0%, transparent 300px);
    position: relative;
    overflow: hidden;
}

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

.reset-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    z-index: 0;
}

.reset-shape.shape-1 {
    top: -5%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: var(--dentist-light-blue);
    animation: pulse-slow 15s infinite alternate;
}

.reset-shape.shape-2 {
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--dentist-orange);
    animation: pulse-slow 20s infinite alternate;
}

.reset-shape.shape-3 {
    top: 40%;
    right: 30%;
    width: 200px;
    height: 200px;
    background: var(--dentist-light-blue);
    animation: pulse-slow 12s infinite alternate;
}

@keyframes pulse-slow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.05;
    }
    100% {
        transform: scale(1.1) translate(20px, 10px);
        opacity: 0.1;
    }
}

/* Welcome Section Animation */
.welcome-section {
    position: relative;
    text-align: center;
    margin: 0 auto 40px;
    max-width: 700px;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    background: var(--reset-backdrop);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 10;
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.welcome-text {
    color: var(--text-charcoal);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.welcome-text:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--reset-gradient);
    border-radius: 3px;
}

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

/* Main Card Styling */
.reset-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    margin: 0 auto;
    max-width: 500px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease forwards 0.3s;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.reset-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Decorative Elements */
.reset-decorative-elements {
    position: relative;
    overflow: hidden;
}

.reset-svg-top {
    width: 100%;
    height: auto;
    display: block;
}

.reset-card-header {
    padding: 30px 30px 20px;
    position: relative;
}

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

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

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

.reset-progress-bar {
    position: absolute;
    left: 0;
    top: 15px;
    height: 3px;
    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: 60px;
}

.reset-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 3px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: #999;
    font-size: 14px;
    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 5px 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: 12px;
    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: 20px;
    position: relative;
}

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

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

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

.reset-form-control {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 1px solid #eee;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    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 3px 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: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: fadeIn 0.3s ease forwards;
}

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

.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: 10px;
    padding: 16px 28px;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    z-index: 1;
}

.reset-btn i {
    transition: transform 0.3s ease;
}

.reset-btn-primary {
    background: var(--reset-gradient);
    color: white;
    box-shadow: 0 6px 15px rgba(33, 147, 176, 0.3);
}

.reset-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 147, 176, 0.4);
    background: var(--reset-gradient-hover);
}

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

.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(-3px);
    border-color: var(--dentist-blue);
    box-shadow: var(--box-shadow-md);
}

.reset-btn:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: 1;
    opacity: 0;
}

.reset-btn:hover:after {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { 
        top: -50%;
        left: -50%;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% { 
        top: 150%;
        left: 150%;
        opacity: 0;
    }
}

/* 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 {
    position: relative;
    padding-top: 20px;
    text-align: center;
}

.reset-svg-bottom {
    width: 100%;
    height: auto;
    display: block;
}

.reset-motivational {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: rgba(33, 147, 176, 0.7);
    font-style: italic;
    font-weight: 500;
}

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

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

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

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

/* 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 */
@media (max-width: 768px) {
    .welcome-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .welcome-text {
        font-size: 28px;
    }

    .welcome-section p {
        font-size: 16px;
    }

    .reset-card {
        margin: 0 15px;
    }
    
    .reset-card-header,
    .reset-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .reset-progress {
        max-width: 280px;
    }
    
    .reset-step-label {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .password-reset-container {
        padding: 20px 15px;
    }
    
    .welcome-text {
        font-size: 24px;
    }

    .welcome-section p {
        font-size: 15px;
    }
    
    .reset-card-header {
        padding: 25px 15px 15px;
    }
    
    .reset-card-body {
        padding: 0 15px 25px;
    }
    
    .reset-form-control {
        padding: 14px 14px 14px 40px;
        font-size: 15px;
    }
    
    .reset-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .reset-status-icon {
        font-size: 60px;
    }
    
    .reset-status-info h3 {
        font-size: 20px;
    }
    
    .reset-status-info p {
        font-size: 15px;
    }
    
    .reset-step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .reset-progress:before,
    .reset-progress-bar {
        top: 13px;
    }
}

/* Make sure elements fit on one screen on smaller devices */
@media (max-height: 700px) {
    .welcome-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .welcome-text {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .welcome-section p {
        font-size: 14px;
        margin-top: 15px;
    }
    
    .reset-form-group {
        margin-bottom: 15px;
    }
    
    .reset-form-control {
        padding: 12px 12px 12px 40px;
    }
    
    .reset-status-info {
        padding: 20px 15px;
    }
    
    .reset-status-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .reset-bottom-element {
        padding-top: 15px;
    }
}