/* Modern Reset */
:root {
    --primary-color: #4361ee;
    --primary-light: #4cc9f0;
    --secondary-color: #3f37c9;
    --success-color: #4bb543;
    --danger-color: #f72585;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

/* Left Side - Decorative */
.auth-decoration {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
    overflow: hidden;
}

.auth-decoration::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.decoration-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.decoration-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.decoration-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.feature-list {
    text-align: left;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-item i {
    margin-right: 10px;
    color: #4cc9f0;
    font-size: 1.2rem;
}

/* Right Side - Form */
.auth-form-container {
    flex: 1;
    display: flex;
    align-items: flex-start; /* Üstten hizalama */
    justify-content: center;
    padding: 2rem 1rem; /* Daha az yatay padding */
    position: relative;
    background: white;
    overflow-y: auto;
    margin: 0 auto;
    max-width: 100%;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 550px;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: var(--transition);
}

.auth-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Form Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    margin-bottom: 1.5rem;
}

.auth-logo img {
    height: 50px;
    transition: var(--transition);
}

.auth-logo img:hover {
    transform: scale(1.05);
}

.auth-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e1e5eb;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Button */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Form Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.language-switcher .dropdown-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.language-switcher .dropdown-toggle:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-switcher .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.language-switcher .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 150px;
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.language-switcher .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.language-switcher .dropdown-item.active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Validation */
.is-invalid {
    border-color: var(--danger-color) !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23f72585' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f72585' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--danger-color);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}

/* Responsive Design */
@media (min-width: 992px) {
    .auth-decoration {
        display: flex;
    }
    
    .auth-form-container {
        padding: 4rem 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Custom Checkbox */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: #adb5bd solid 1px;
    border-radius: 0.25rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.custom-checkbox .custom-control-label::before {
    border-radius: 0.25rem;
}

.custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

.custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: no-repeat 50%/50% 50%;
}
