body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    

    background-image: linear-gradient(rgba(244, 246, 250, 0.8), rgba(244, 246, 250, 0.8)), 
                      url('bg.jpg');
                      
    background-size: cover;         
    background-position: center;    
    background-attachment: fixed;   
    background-repeat: no-repeat;    
    
    color: #333;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}



header h1 {
    color: #4a2ec7;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
}

.form-container, .profile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 8px 24px rgba(74, 46, 199, 0.06);
    border: 1px solid #e2e5ec;
    box-sizing: border-box;
}

h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #f0f2f7;
    padding-bottom: 10px;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table td {
    padding: 10px 0;
    vertical-align: middle;
}

.col-label {
    width: 30%;
    font-weight: 600;
    color: #4c566a;
    font-size: 14px;
}

.col-input {
    width: 70%;
    position: relative;
}

input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d8dee9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #7a5cff;
    box-shadow: 0 0 0 3px rgba(122, 92, 255, 0.15);
}

/* Валидация: статусы полей */
.error-input {
    border-color: #d08770 !important;
    background-color: #fff5f5;
}

.success-input {
    border-color: #a3be8c !important;
    background-color: #f6fff6;
}

.error-msg {
    color: #bf616a;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.success-msg-text {
    color: #a3be8c;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.hint {
    font-size: 11px;
    color: #4c566a;
    opacity: 0.7;
    line-height: 1.4;
    margin-top: 2px;
}


.btn-group {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.btn {
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.btn-primary {
    background-color: #7a5cff;
    color: white;
    flex: 2;
}

.btn-primary:hover {
    background-color: #6340ff;
}

.btn-secondary {
    background-color: #e5e9f0;
    color: #4c566a;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #d8dee9;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.avatar-placeholder {
    width: 110px;
    height: 110px;
    background-color: #e5e9f0;
    border: 2px dashed #7a5cff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c566a;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.profile-info {
    margin-top: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eceff4;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #4c566a;
}

.info-value {
    color: #2e3440;
}

.alert-success {
    background-color: #e3f7ed;
    color: #1e7e4c;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.debug-query {
    background: #f8f9fa;
    border: 1px solid #e2e5ec;
    padding: 10px;
    border-radius: 6px;
    font-family: Courier, monospace;
    font-size: 12px;
    color: #666;
    word-break: break-all;
    margin-top: 20px;
}

footer {
    margin-top: 30px;
    font-size: 12px;
    color: #888;
}
