* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: url('https://site.yonet.com.tr/assets/img/bg2.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 3rem;transition: background-image 0.5s ease-in-out;
}


.login-container {
    width: 100%;
    max-width: 400px;
    min-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    text-align: center;
    margin-top: -80px;
	margin-bottom:2rem
}

.logo-image {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.logo p {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

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

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    color: #465367;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
}

.form-group label .label-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: #666;
}

.form-control {
    width: 100%;
    padding: .75rem .75rem;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #007AFF;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.form-control.invalid {
    border-color: #FF3B30;
    background-color: #fff5f5;
}

.form-control.invalid:focus {
    border-color: #FF3B30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007AFF;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.forgot-password {
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3290c7 0%, #2b7bb8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(50, 144, 199, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.signup-link {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.signup-link a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
	padding:.5rem;
	text-transform : uppercase;
	display : block;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Result mesajları için stil */
#result {
    margin: 1rem 0 1rem 0;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

#result.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}



#result.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#result.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.text-success {  color: #155724; }
.text-danger {  color: #721c24; }

/* HTML Response Container */
#result.html-response {
    padding: 0;
    text-align: left;
    background: white;
    border: 1px solid #e1e5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow: hidden;
}

.html-response-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.html-response-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #495057;
}

.close-response {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-response:hover {
    background: #e9ecef;
    color: #495057;
}

.html-response-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    max-height: 320px;
}

/* HTML Response içindeki elementler için stil */
.html-response-content * {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

.html-response-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.html-response-content table td,
.html-response-content table th {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.html-response-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.html-response-content a {
    color: #007AFF;
    text-decoration: none;
}

.html-response-content a:hover {
    text-decoration: underline;
}

.html-response-content .alert,
.html-response-content .message {
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border-left: 4px solid #007AFF;
    background: #f8f9ff;
}

.html-response-content .error {
    border-left-color: #FF3B30;
    background: #fff5f5;
    color: #721c24;
}

.html-response-content .success {
    border-left-color: #34C759;
    background: #f0fff4;
    color: #155724;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.alert {} 
.alert-success { color : #007a00 }
.alert-danger { color : #9d0012 }
.alert-warning { color : #c59700 }

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

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .login-container {
        margin: 0;
        padding: 40px 25px;
        border-radius: 0;
        min-height: 100vh;
        width: 100vw;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: none;
    }
    
    .logo h1 {
        font-size: 28px;
    }
}

.phone-input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.phone-input-group .country-code {
    flex: 0 0 80px;
    min-width: 80px;
}

.phone-input-group .phone-number {
    flex: 1;
}

.alert {
    padding: 5px;
    border-radius: 5px;
    margin: 10px 0;
 
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
}

.alert-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-fieldset {
    border: none;
    padding: 0;
    margin: 20px 0;
    background-color: transparent;
}

.fieldset-legend {
    font-size: 14px;
    font-weight: 600;
    color: #7acfe7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border: none;
}

.form-row {
    margin-bottom: 15px;
}

.name-inputs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.name-inputs .form-control {
    flex: 1;
}

.control-label em {
    color: #e74c3c;
    font-style: normal;
    margin-left: 2px;
}

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

.terms-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.terms-text a {
    color: #3c3c3c;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin:  0;
}

.form-grid-left,
.form-grid-right {
    min-width: 0; /* Prevents grid items from overflowing */
}

/* Mobile responsive - stack vertically on small screens */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
