/* VoleyBul Login Sayfası CSS */
/* Güncelleme: Şifre analizi ve göster/gizle özelliği eklendi */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #FF6B00;
    --secondary-color: #0077FF;
    --light-blue: #E6F4FF;
    --dark-text: #1E1E2F;
    --light-gray: #F4F4F4;
    --white: #FFFFFF;
    --error-red: #ff3b30;
    --success-green: #34c759;
    --warning-orange: #ff9500;
    --medium-strength: #ffcc00;
    --shadow: 0 8px 20px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
}

main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

main::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.05;
    top: -100px;
    right: -100px;
    z-index: 0;
}

main::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.05;
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

/* Form Bileşenleri */
.form-container {
    width: 100%;
    max-width: 450px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

.form-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--dark-text);
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
}

.form-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.form-icon {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.styled-form {
    display: flex;
    flex-direction: column;
}

.styled-form label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.styled-form label i {
    margin-right: 5px;
    color: var(--primary-color);
}

.styled-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.styled-form input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
    outline: none;
}

.styled-form button {
    background: linear-gradient(135deg, var(--primary-color), #ff8534);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.styled-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.styled-form button:hover {
    background: linear-gradient(135deg, #ff8534, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.styled-form button:hover::before {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    60% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.styled-form button:active {
    transform: translateY(0);
}

.form-link {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.form-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.form-link a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-link a:hover::after {
    transform: scaleX(1);
}

/* Hata ve Başarı Mesajları */
.form-error {
    padding: 12px 15px;
    background-color: #ffedec;
    color: var(--error-red);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 3px solid var(--error-red);
}

.form-success {
    padding: 12px 15px;
    background-color: #e3f8e9;
    color: var(--success-green);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 3px solid var(--success-green);
}



/* Şifre göster/gizle butonu */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 40px; /* Şifre göster/gizle ikonu için yer aç */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--dark-text);
    opacity: 0.6;
    transition: var(--transition);
    z-index: 2;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Şifre güç ölçer */
.password-strength {
    margin-top: 8px;
    font-size: 0.85rem;
}

.password-criteria {
    margin-top: 5px;
    padding-left: 0;
    list-style: none;
}

.password-criteria li {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    font-size: 0.8rem;
    color: var(--dark-text);
    opacity: 0.8;
}

.password-criteria li i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.criteria-failed i {
    color: var(--error-red);
}

.criteria-passed i {
    color: var(--success-green);
}

.password-strength-meter {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-top: 5px;
    margin-bottom: 8px;
    overflow: hidden;
}

.password-strength-meter-fill {
    height: 100%;
    border-radius: 2px;
    transition: var(--transition);
    width: 0;
}

.strength-weak .password-strength-meter-fill {
    background-color: var(--error-red);
    width: 25%;
}

.strength-medium .password-strength-meter-fill {
    background-color: var(--warning-orange);
    width: 50%;
}

.strength-good .password-strength-meter-fill {
    background-color: var(--medium-strength);
    width: 75%;
}

.strength-strong .password-strength-meter-fill {
    background-color: var(--success-green);
    width: 100%;
}

.password-strength-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.strength-weak .password-strength-text {
    color: var(--error-red);
}

.strength-medium .password-strength-text {
    color: var(--warning-orange);
}

.strength-good .password-strength-text {
    color: var(--medium-strength);
}

.strength-strong .password-strength-text {
    color: var(--success-green);
}

/* Responsive Tasarım */
@media screen and (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
    
    .form-container h2 {
        font-size: 1.7rem;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding: 20px 15px;
    }
    

    
    .form-container {
        padding: 25px 15px;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
    }
    
    .styled-form input {
        padding: 10px 12px;
    }
    
    .styled-form button {
        padding: 12px 16px;
    }
}
