/* css/register.css */

/* Modālais logs */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 32px 32px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #171717;
    margin: 0;
}

.modal-header .highlight {
    color: #2563eb;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999999;
    padding: 4px 8px;
    border-radius: 40px;
    transition: all 0.2s;
    line-height: 1;
}

.close-modal:hover {
    background: #f5f5f5;
    color: #2563eb;
}

/* Reģistrācijas forma */
.register-form {
    padding: 32px;
}

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

.form-row.half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #404040;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #2563eb;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: white;
    transition: all 0.2s;
    color: #171717;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Phone input ar dial kodu */
.phone-input {
    display: flex;
    gap: 8px;
}

.phone-input select {
    width: 100px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: white;
    transition: all 0.2s;
    color: #171717;
    cursor: pointer;
}

.phone-input select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.phone-input .form-control {
    flex: 1;
}

/* Adreses lauki */
.address-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
}

/* Piekrišanas checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
    cursor: pointer;
}

.terms-checkbox label {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.terms-checkbox a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.terms-checkbox a:hover {
    border-bottom-color: #2563eb;
}

/* Poga */
.btn-register {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.btn-register:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px #2563eb;
}

/* Alternatīva opcija */
.alternative {
    text-align: center;
    font-size: 14px;
    color: #999999;
}

.alternative a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.alternative a:hover {
    border-bottom: 1px solid #2563eb;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-header {
        padding: 24px 24px 12px;
    }
    
    .register-form {
        padding: 24px;
    }
    
    .form-row.half {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .address-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .phone-input {
        flex-direction: column;
    }
    
    .phone-input select {
        width: 100%;
    }
}