:root {
    --primary-color: #2D8078;
    --primary-dark: #24655f;
    --primary-light: #3fa89e;
    --secondary-color: #FFA726;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--dark-color);
}

.login-container {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
}

.back-link i {
    margin-right: 8px;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.user-type-toggle {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.user-type-toggle button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-toggle button.active {
    background-color: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}
input[type="checkbox"] {
  appearance: none; /* Varsayılan tarayıcı stilini kaldırır */
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #555;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: #4caf50;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  color: white;
  font-size: 16px;
  position: absolute;
  top: -2px;
  left: 3px;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 128, 120, 0.2);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.remember-me input {
    margin-right: 8px;
}

#forgot-link {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.social-login {
    margin: 30px 0;
    text-align: center;
}

.social-login p {
    position: relative;
    margin-bottom: 20px;
    color: #999;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 20%;
    height: 1px;
    background-color: #eee;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn.google {
    background-color: #DB4437;
}

.social-btn.facebook {
    background-color: #4267B2;
}

.social-btn.apple {
    background-color: #000;
}

.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register-link a, .login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.password-strength-meter {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    margin-bottom: 4px;
    overflow: hidden;
}

.strength-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: 0;
    background-color: var(--danger-color);
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #999;
}

.terms-group {
    margin: 20px 0;
}

.terms-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.terms-label input {
    margin-right: 8px;
}

.terms-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes rotate {
    from { background-position: 0px 0px; }
    to { background-position: 610px 0px; }
}

#earth {
    width: 100px;
    height: 100px;
    background: url('../img/logo-earth.png');
    border-radius: 50%;
    background-size: 100px;
    box-shadow: inset 8px 6px 20px 16px rgb(0, 0, 0), inset -6px 0 12px 4px rgba(255, 255, 255, 0.3);
    animation: rotate 12s linear infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 20px;
        margin: 10px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #forgot-link {
        margin-top: 10px;
    }
}
/* Genel input stilleri */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Bu satır çok önemli */
    max-width: 100%; /* Taşmayı engeller */
}

/* Password input container */
.password-input-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Password toggle icon */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 8px;
}
