.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0f2f5;
    padding: 20px;
    overflow-x: hidden;
}

.auth-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    padding: 30px;
    overflow-x: hidden;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    color: #65676b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.tab-btn:hover {
    background: #f0f2f5;
}

.tab-btn.active {
    color: #2ecc71;
    background: #e6ffe6;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group label {
    margin-bottom: 8px;
    color: #65676b;
    font-weight: 500;
}

.form-group input {
    width: 80%;
    max-width: 350px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none; /* Remove outline completely */
}

.form-group input:focus {
    outline: none; /* Ensure no outline on focus */
    border: 1px solid #ddd; /* Maintain consistent border */
}

/* Profile Picture Upload Styling */
.profile-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2ecc71;
    background: #f0f2f5;
    position: relative;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.1);
}

.profile-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
    position: relative;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    font-size: 14px;
}

.profile-upload:hover .profile-overlay {
    opacity: 1;
}

input[type="file"] {
    display: none;
}

button[type="submit"] {
    width: 80%;
    max-width: 350px;
    padding: 12px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 auto;
    display: block;
}

button[type="submit"]:hover {
    background: #27ae60;
}

/* Success/Error messages */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background: #e4f8e8;
    color: #0a7d1a;
}

.error {
    background: #ffebee;
    color: #c62828;
}

/* Messages from PHP/JS */
.message.error, .message.success {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.message.error {
    color: red;
    background: #ffe6e6;
    border: 1px solid red;
}

.message.success {
    color: green;
    background: #e6ffe6;
    border: 1px solid green;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.invalid input {
    border-color: red;
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}