﻿/* ===================================
   FOREM - REGISTER PAGE
   Minimal & Modern Design
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Main Wrapper - Centered */
.register-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding:25px;

}

/* ===================================
   REGISTER FORM PANEL
   =================================== */
.register-panel {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.register-form-container {
    width: 100%;
    padding: 48px 40px;
}

.form-header {
    margin-bottom: 32px;
    text-align: center;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.form-description {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0;
}

.register-form {
    width: 100%;
}

/* ===================================
   INPUT STYLES
   =================================== */
.input-group {
    margin-bottom: 20px; /* tüm inputlar eşit alt boşlukta */
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px; /* kolon arası boşluk */
    margin-bottom: 0; /* alt boşluk iptal edildi, input-group margin-bottom geçerli */
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

    .input-label svg {
        color: #FF6B35;
        flex-shrink: 0;
    }

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #2c3e50;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-input:focus {
        outline: none;
        background: #ffffff;
        border-color: #FF6B35;
        box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    }

    .form-input::placeholder {
        color: #adb5bd;
    }

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

    .password-input-wrapper .form-input {
        padding-right: 48px;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #7f8c8d;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle:hover {
        color: #FF6B35;
    }

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.input-hint {
    display: block;
    color: #95a5a6;
    font-size: 12px;
    margin-top: 6px;
    font-style: italic;
}

/* ===================================
   ALERT ERROR
   =================================== */
.alert-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 12px;
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 20px;
}

    .alert-error svg {
        flex-shrink: 0;
        color: #e74c3c;
    }

/* ===================================
   TERMS
   =================================== */
.terms-text {
    margin-bottom: 24px;
}

    .terms-text p {
        font-size: 13px;
        color: #7f8c8d;
        font-style: italic;
        margin: 0;
        line-height: 1.6;
    }

.terms-link {
    color: #FF6B35;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .terms-link:hover {
        color: #e65a2b;
    }

/* ===================================
   SUBMIT BUTTON
   =================================== */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

    .submit-btn:hover {
        background: linear-gradient(135deg, #e65a2b 0%, #FF6B35 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn svg {
        flex-shrink: 0;
    }

/* ===================================
   DIVIDER
   =================================== */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #adb5bd;
    font-size: 14px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e9ecef;
    }

    .divider span {
        padding: 0 16px;
        white-space: nowrap;
    }

/* ===================================
   LOGIN SECTION
   =================================== */
.login-section {
    text-align: center;
}

    .login-section p {
        margin: 0;
        font-size: 15px;
        color: #6c757d;
    }

    .login-section a {
        color: #FF6B35;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .login-section a:hover {
            color: #e65a2b;
            text-decoration: underline;
        }

/* ===================================
   LOADING STATE
   =================================== */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

    .submit-btn.loading svg {
        animation: rotate 1s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .register-wrapper {
        padding: 16px;
    }

    .register-panel {
        max-width: 100%;
        border-radius: 20px;
    }

    .register-form-container {
        padding: 40px 32px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-description {
        font-size: 14px;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile Large (576px and below) */
@media (max-width: 576px) {
    .register-wrapper {
        padding: 12px;
    }

    .register-panel {
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }

    .register-form-container {
        padding: 32px 24px;
    }

    .form-title {
        font-size: 26px;
    }

    .input-label {
        font-size: 13px;
    }

    .form-input {
        padding: 13px 14px;
        font-size: 14px;
    }

    .password-input-wrapper .form-input {
        padding-right: 44px;
    }

    .submit-btn {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* Mobile Small (400px and below) */
@media (max-width: 400px) {
    .register-wrapper {
        padding: 8px;
        align-items: flex-start;
      
    }

    .register-form-container {
        padding: 28px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-description {
        font-size: 13px;
    }

    .input-label svg {
        width: 16px;
        height: 16px;
    }

    .form-input {
        padding: 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px 18px;
        font-size: 14px;
    }

        .submit-btn svg {
            width: 18px;
            height: 18px;
        }
}

/* Very Small Screens (350px and below) */
@media (max-width: 350px) {
    .register-form-container {
        padding: 24px 16px;
    }

    .form-title {
        font-size: 22px;
    }

    .input-group {
        margin-bottom: 18px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 700px) and (orientation: landscape) {
    .register-wrapper {
        padding: 20px;
        align-items: flex-start;
    }

    .register-form-container {
        padding: 30px 32px;
    }

    .form-header {
        margin-bottom: 24px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-row {
        margin-bottom: 16px;
    }

    .divider {
        margin: 20px 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-input,
    .submit-btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
