/* Register Page Specific Styles */
.register-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-card {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    min-height: 700px;
    animation: slideUp 0.8s ease-out;
}

.register-left {
    flex: 2;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 90vh;
    overflow-x:hidden;
}

.register-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Row for Side by Side Fields */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.half-width {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Textarea Styles */
.textarea-control {
    min-height: 100px;
    resize: vertical;
    padding: 16px 16px 16px 50px;
    line-height: 1.5;
    font-family: inherit;
}

/* File Upload Styles */
.file-upload-label {
    display: block;
    width: 100%;
    min-height: 120px;
    border: 2px dashed #e9ecef;
    border-radius: 16px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 20px;
    text-align: center;
    margin-bottom: 8px;
}

.file-upload-label:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.file-upload-label.file-selected {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.file-upload-label.file-processing {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
    pointer-events: none;
}

.file-upload-label.file-processing .file-name {
    color: #ffc107;
    font-weight: 600;
}

.file-upload-label i {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.file-upload-label:hover i {
    color: #dc3545;
}

.file-upload-label.file-selected i {
    color: #28a745;
}

.file-upload-label span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-info {
    margin-top: 8px;
}

.file-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
}

.file-info small {
    font-size: 12px;
    color: #6c757d;
}

/* Document Section Styles */
.document-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #e9ecef;
}

.document-item {
    margin-bottom: 20px;
}

.document-item:last-child {
    margin-bottom: 0;
}

.document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.document-header i {
    color: #dc3545;
    font-size: 18px;
    margin-right: 12px;
}

.document-header span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.btn-document {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-document:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.checkbox-wrapper:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.document-checkbox {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin: 0;
    width: 100%;
}

.checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.3s ease;
    background: white;
}

.document-checkbox:checked + .checkbox-label .checkbox-icon {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.document-checkbox:checked + .checkbox-label {
    color: #2c3e50;
}

/* Register Button */
.btn-register {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-register:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
}

.btn-register:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-register .btn-icon {
    transition: all 0.3s ease;
}

.btn-register:hover:not(:disabled) .btn-icon {
    transform: translateX(4px);
}

/* Form Text */
.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Back to Login */
.back-to-login {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.back-to-login:hover {
    color: #dc3545;
}

.back-to-login i {
    transition: all 0.3s ease;
}

.back-to-login:hover i {
    transform: translateX(-4px);
}

/* Validation Messages for Register */
.register-form .validation-message {
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive Design for Register */
@media (max-width: 1200px) {
    .register-left {
        flex: 1.5;
    }
}

@media (max-width: 992px) {
    .register-card {
        flex-direction: column;
        min-height: auto;
        max-width: 700px;
    }
    
    .register-left {
        padding: 30px 40px;
        max-height: none;
    }
    .register-container{
        position:absolute;
        top:0;
    }

    .login-right {
        order: -1;
        padding: 30px 40px;
    }
    
    .ministry-logo {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        margin-bottom: 24px !important;
    }
    
    .register-left {
        padding: 20px 30px;
    }
    
    .login-right {
        padding: 20px 30px;
    }
    
    .file-upload-label {
        min-height: 100px;
        padding: 16px;
    }
    
    .document-section {
        padding: 16px;
    }
    
    .document-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .document-header span {
        margin-bottom: 8px;
    }
    
    .btn-document {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .register-left {
        padding: 20px;
    }
    
    .login-right {
        padding: 20px;
    }
    
    .system-name {
        font-size: 20px;
    }
    
    .form-control, .textarea-control {
        height: 52px;
        font-size: 14px;
    }
    
    .textarea-control {
        min-height: 80px;
    }
    
    .btn-register {
        height: 52px;
        font-size: 14px;
    }
    
    .file-upload-label {
        min-height: 80px;
        padding: 12px;
    }
    
    .file-upload-label i {
        font-size: 20px;
    }
}

/* Loading State */
.btn-register.loading {
    pointer-events: none;
}

.btn-register.loading .btn-text {
    opacity: 0.7;
}

.btn-register.loading .btn-icon {
    animation: spin 1s linear infinite;
}

/* File Preview */
.file-preview {
    margin-top: 8px;
    padding: 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.file-preview img {
    max-width: 100px;
    max-height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

/* Success State */
.input-wrapper.success .form-control {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.input-wrapper.success .input-icon {
    color: #28a745;
}

/* Error State Enhancement */
.input-wrapper.error .form-control {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.input-wrapper.error .input-icon {
    color: #dc3545;
}

/* Hata Mesajı Tasarımı */
.error-message-container {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.2);
    animation: slideDown 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.error-message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ee5a52, #ff6b6b);
    animation: shimmer 2s infinite;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.error-header i {
    font-size: 20px;
    color: #ffeb3b;
    animation: pulse 2s infinite;
}

.error-content {
    color: white;
}

.error-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border-left: 3px solid #ffeb3b;
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-item i {
    color: #ffeb3b;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.error-item span {
    font-size: 14px;
    line-height: 1.4;
    color: white;
}

/* Animasyonlar */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Başarı Mesajı Tasarımı */
.success-message-container {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
    animation: slideDown 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.success-message-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    animation: shimmer 2s infinite;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.success-header i {
    font-size: 20px;
    color: #ffeb3b;
    animation: pulse 2s infinite;
}

.success-content {
    color: white;
}

.success-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border-left: 3px solid #ffeb3b;
}

.success-item:last-child {
    margin-bottom: 0;
}

.success-item i {
    color: #ffeb3b;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.success-item span {
    font-size: 14px;
    line-height: 1.4;
    color: white;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .error-message-container,
    .success-message-container {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .error-header,
    .success-header {
        font-size: 14px;
    }
    
    .error-item,
    .success-item {
        padding: 6px 10px;
    }
    
    .error-item span,
    .success-item span {
        font-size: 13px;
    }
} 