:root {
    /* Password Reset Specific Colors */
    --reset-primary: var(--anarenk);
    --reset-secondary: var(--mor);
    --reset-dark: var(--siyah);
    --reset-light: var(--krem);
    --reset-gray: var(--gri);
    --reset-danger: var(--kirmizi);
    --reset-success: var(--success-color);
    
    /* Password Reset Gradients */
    --reset-gradient-main: linear-gradient(135deg, var(--anarenk) 0%, var(--mor) 100%);
    --reset-gradient-overlay: linear-gradient(135deg, rgba(255, 99, 72, 0.88) 0%, rgba(125, 70, 243, 0.88) 100%);
    --reset-gradient-light: linear-gradient(135deg, rgba(255, 99, 72, 0.1) 0%, rgba(125, 70, 243, 0.1) 100%);
    
    /* Password Reset Spacing */
    --reset-space-xs: 8px;
    --reset-space-sm: 16px;
    --reset-space-md: 24px;
    --reset-space-lg: 32px;
    --reset-space-xl: 48px;
    
    /* Password Reset Border Radius */
    --reset-radius-sm: 8px;
    --reset-radius-md: 12px;
    --reset-radius-lg: 16px;
    --reset-radius-xl: 24px;
    
    /* Password Reset Shadows */
    --reset-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --reset-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --reset-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --reset-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);
    
    /* Password Reset Transitions */
    --reset-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --reset-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.password-reset-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    background: var(--reset-gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 9999;
}

.password-reset-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="reset-dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.12)"/><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="20" cy="35" r="0.8" fill="rgba(255,255,255,0.06)"/><circle cx="35" cy="15" r="1.2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="200" height="200" fill="url(%23reset-dots)"/></svg>');
    opacity: 0.5;
    z-index: 1;
    animation: resetPatternFloat 25s ease-in-out infinite;
}

@keyframes resetPatternFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.5;
    }
    33% { 
        transform: translateY(-8px) rotate(1deg); 
        opacity: 0.6;
    }
    66% { 
        transform: translateY(5px) rotate(-1deg); 
        opacity: 0.4;
    }
}

/* Main wrapper */
.password-reset-wrapper {
    display: flex;
    background: rgba(252, 252, 249, 0.98);
    backdrop-filter: blur(20px) saturate(1.3);
    border-radius: var(--reset-radius-xl);
    box-shadow: var(--reset-shadow-xl);
    overflow: hidden;
    width: 95vw;
    max-width: 1200px;
    min-height: 90vh;
    position: relative;
    z-index: 2;
    animation: resetEnterAnimation 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes resetEnterAnimation {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.85);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Sol taraf - Görsel bölümü */
.password-reset-visual-section {
    flex: 1.3;
    position: relative;
    background: var(--reset-gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
}

.password-reset-visual-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.password-reset-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--reset-transition);
    filter: brightness(0.75) contrast(1.1) saturate(1.2);
}

.password-reset-visual-section:hover .password-reset-background-image {
    transform: scale(1.08);
    filter: brightness(0.85) contrast(1.2) saturate(1.3);
}

.password-reset-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--reset-gradient-overlay);
    opacity: 0.88;
    z-index: 1;
}

.password-reset-branding {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: resetBrandingSlideUp 1s ease-out 0.6s both;
    padding: var(--reset-space-md);
}

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

.password-reset-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--reset-space-sm);
    margin-bottom: var(--reset-space-lg);
}

.password-reset-logo-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: var(--reset-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 32px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: var(--reset-transition);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: resetSecurityPulse 3s ease-in-out infinite;
}

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

.password-reset-logo-icon:hover {
    transform: scale(1.15) rotate(8deg);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.password-reset-logo-text {
    font-size: 42px;
    font-weight: 900;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.password-reset-tagline {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Sağ taraf - Form bölümü */
.password-reset-form-section {
    flex: 1;
    background: var(--reset-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--reset-space-lg);
    min-height: 400px;
}

.password-reset-form-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    background: var(--reset-gradient-light);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
}

.password-reset-form-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 100px;
    height: 100px;
    background: var(--reset-gradient-light);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.4;
}

.password-reset-form-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

/* Header area */
.password-reset-header-area {
    text-align: center;
    margin-bottom: var(--reset-space-xl);
}

.password-reset-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--reset-dark);
    margin: 0 0 var(--reset-space-sm) 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    hyphens: auto;
    background: linear-gradient(135deg, var(--reset-primary), var(--reset-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.password-reset-subtitle {
    font-size: 15px;
    color: var(--reset-gray);
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Form stilleri */
.password-reset-form-wrapper {
    width: 100%;
}

.password-reset-form {
    width: 100%;
}

.password-reset-field-group {
    margin-bottom: var(--reset-space-md);
}

.password-reset-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--reset-dark);
    margin-bottom: var(--reset-space-sm);
    letter-spacing: 0.2px;
}

.password-reset-field-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(157, 158, 157, 0.25);
    border-radius: var(--reset-radius-md);
    font-size: 15px;
    background: white;
    transition: var(--reset-transition);
    outline: none;
    color: var(--reset-dark);
    font-weight: 500;
    box-shadow: var(--reset-shadow-sm);
}

.password-reset-field-input:focus {
    border-color: var(--reset-primary);
    box-shadow: 0 0 0 4px rgba(255, 99, 72, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

.password-reset-field-input:hover {
    border-color: rgba(255, 99, 72, 0.4);
}

.password-reset-field-input::placeholder {
    color: var(--reset-gray);
    font-weight: 400;
}

/* Mesaj bölümü */
.password-reset-message-area {
    margin: var(--reset-space-md) 0;
    text-align: center;
    min-height: 30px;
}

.password-reset-message-area .loader {
    display: none;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 99, 72, 0.3);
    border-top: 3px solid var(--reset-primary);
    border-radius: 50%;
    animation: resetSpinLoader 1s linear infinite;
    margin: 0 auto;
}

@keyframes resetSpinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.password-reset-message-area .sonuc {
    padding: 16px 20px;
    border-radius: var(--reset-radius-md);
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: var(--reset-transition);
    line-height: 1.4;
    text-align: center;
}

.password-reset-message-area .sonuc.success {
    background: rgba(40, 167, 69, 0.12);
    color: #2E7D32;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.password-reset-message-area .sonuc.error {
    background: rgba(234, 0, 5, 0.12);
    color: var(--reset-danger);
    border: 2px solid rgba(234, 0, 5, 0.3);
}

/* Submit butonu */
.password-reset-submit-area {
    margin-bottom: var(--reset-space-md);
}

.password-reset-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--reset-gradient-main);
    border: none;
    border-radius: var(--reset-radius-md);
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--reset-transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: var(--reset-shadow-md);
    text-transform: uppercase;
}

.password-reset-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--reset-shadow-lg);
}

.password-reset-submit-btn:active {
    transform: translateY(-1px);
}

.password-reset-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.7s;
}

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

.password-reset-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
    cursor: not-allowed;
}

.password-reset-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: resetSpinLoader 1s linear infinite;
}

/* Navigation area */
.password-reset-navigation-area {
    text-align: center;
    margin-top: var(--reset-space-lg);
    padding-top: var(--reset-space-md);
    border-top: 1px solid rgba(157, 158, 157, 0.2);
}

.password-reset-navigation-text {
    font-size: 14px;
    color: var(--reset-gray);
    margin: 0;
    font-weight: 500;
}

.password-reset-navigation-link {
    color: var(--reset-primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--reset-transition-fast);
    margin-left: 4px;
}

.password-reset-navigation-link:hover {
    color: var(--reset-secondary);
    text-decoration: none;
    transform: translateY(-1px);
}

.password-reset-navigation-link:focus {
    outline: 2px solid var(--reset-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* RESPONSIVE DESIGN */

/* Large Desktop */
@media (min-width: 1400px) {
    .password-reset-wrapper {
        max-width: 1400px;
    }
    
    .password-reset-title {
        font-size: 36px;
    }
    
    .password-reset-logo-text {
        font-size: 48px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .password-reset-wrapper {
        width: 90vw;
        max-width: 1000px;
    }
    
    .password-reset-form-section {
        padding: var(--reset-space-md);
    }
}

/* Large Tablet (Landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
    .password-reset-container {
        align-items: flex-start;
        padding: 10px;
        overflow-y: auto;
    }
    
    .password-reset-wrapper {
        width: 95vw;
        min-height: auto;
        margin: 10px 0;
    }
    
    .password-reset-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .password-reset-subtitle {
        font-size: 14px;
    }
    
    .password-reset-visual-section {
        min-height: 300px;
    }
    
    .password-reset-logo-text {
        font-size: 32px;
    }
    
    .password-reset-tagline {
        font-size: 15px;
    }
    
    .password-reset-form-section {
        padding: var(--reset-space-md) var(--reset-space-sm);
    }
    
    .password-reset-header-area {
        margin-bottom: var(--reset-space-md);
    }
    
    .password-reset-field-group {
        margin-bottom: var(--reset-space-sm);
    }
    
    .password-reset-navigation-area {
        margin-top: var(--reset-space-md);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .password-reset-container {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .password-reset-wrapper {
        width: 100vw;
        min-height: 100vh;
        border-radius: 0;
        flex-direction: column;
        margin: 0;
    }
    
    .password-reset-visual-section {
        flex: none;
        min-height: 280px;
        order: 1;
    }
    
    .password-reset-form-section {
        flex: 1;
        order: 2;
        padding: var(--reset-space-lg) var(--reset-space-md);
        min-height: auto;
    }
    
    .password-reset-form-container {
        max-width: 100%;
    }
    
    .password-reset-header-area {
        margin-bottom: var(--reset-space-md);
    }
    
    .password-reset-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .password-reset-subtitle {
        font-size: 14px;
    }
    
    .password-reset-logo-text {
        font-size: 30px;
    }
    
    .password-reset-tagline {
        font-size: 15px;
    }
    
    .password-reset-logo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .password-reset-field-input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .password-reset-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .password-reset-navigation-area {
        margin-top: var(--reset-space-md);
        padding-top: var(--reset-space-sm);
    }
    
    .password-reset-navigation-text {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .password-reset-container {
        overflow-y: auto;
        align-items: flex-start;
        padding: 5px;
    }
    
    .password-reset-wrapper {
        flex-direction: row;
        min-height: auto;
        margin: 5px 0;
    }
    
    .password-reset-visual-section {
        flex: 0.6;
        order: 1;
        min-height: auto;
    }
    
    .password-reset-form-section {
        flex: 1.4;
        order: 2;
        min-height: auto;
        padding: var(--reset-space-sm);
    }
    
    .password-reset-header-area {
        margin-bottom: var(--reset-space-sm);
    }
    
    .password-reset-title {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .password-reset-subtitle {
        font-size: 13px;
    }
    
    .password-reset-field-group {
        margin-bottom: var(--reset-space-xs);
    }
    
    .password-reset-navigation-area {
        margin-top: var(--reset-space-sm);
    }
    
    .password-reset-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .password-reset-logo-text {
        font-size: 24px;
    }
    
    .password-reset-tagline {
        font-size: 13px;
    }
    
    .password-reset-field-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .password-reset-submit-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Large Mobile */
@media (max-width: 640px) {
    .password-reset-visual-section {
        min-height: 240px;
    }
    
    .password-reset-form-section {
        padding: var(--reset-space-md) var(--reset-space-sm);
    }
    
    .password-reset-title {
        font-size: 22px;
    }
    
    .password-reset-logo-text {
        font-size: 28px;
    }
}

/* Standard Mobile */
@media (max-width: 480px) {
    .password-reset-form-section {
        padding: var(--reset-space-sm) 16px;
    }
    
    .password-reset-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .password-reset-subtitle {
        font-size: 13px;
    }
    
    .password-reset-field-input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .password-reset-submit-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .password-reset-visual-section {
        min-height: 200px;
    }
    
    .password-reset-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .password-reset-logo-text {
        font-size: 26px;
    }
    
    .password-reset-tagline {
        font-size: 14px;
    }
    
    .password-reset-navigation-text {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .password-reset-field-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .password-reset-submit-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .password-reset-title {
        font-size: 18px;
    }
    
    .password-reset-logo-text {
        font-size: 24px;
    }
    
    .password-reset-form-section {
        padding: var(--reset-space-sm) 12px;
    }
}

/* Critical: Very short screens */
@media (max-height: 600px) {
    .password-reset-container {
        align-items: flex-start;
        overflow-y: auto;
        padding: 5px;
    }
    
    .password-reset-wrapper {
        min-height: auto;
        margin: 5px 0;
    }
    
    .password-reset-header-area {
        margin-bottom: var(--reset-space-sm);
    }
    
    .password-reset-field-group {
        margin-bottom: var(--reset-space-sm);
    }
    
    .password-reset-navigation-area {
        margin-top: var(--reset-space-sm);
    }
}

/* iPad specific optimization */
@media (min-width: 768px) and (max-width: 1024px) {
    .password-reset-container {
        padding: 15px;
        overflow-y: auto;
        align-items: center;
    }
    
    .password-reset-wrapper {
        width: 85vw;
        min-height: auto;
        max-width: 900px;
    }
    
    .password-reset-visual-section {
        min-height: 350px;
    }
    
    .password-reset-form-section {
        padding: var(--reset-space-xl) var(--reset-space-lg);
    }
    
    .password-reset-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .password-reset-subtitle {
        font-size: 15px;
    }
    
    .password-reset-field-input {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .password-reset-submit-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Critical fix for text overflow */
@media (max-width: 1024px) {
    .password-reset-title {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .password-reset-subtitle {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Accessibility improvements */
.password-reset-field-input:focus,
.password-reset-submit-btn:focus {
    outline: 2px solid var(--reset-primary);
    outline-offset: 2px;
}

/* Enhanced animations */
.password-reset-form-container {
    animation: resetFormSlideIn 0.8s ease-out 0.3s both;
}

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