/**
 * Site Users Forms Styling - Modern Premium Design
 * Enhanced UX with split-screen layout and smooth animations
 */

/* ========================================
   USER FORM SECTION - SPLIT SCREEN LAYOUT
   ======================================== */

.user-form-section {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* Left Side - Visual/Branding */
.form-visual-side {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    color: white;
}

.form-visual-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

.visual-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.visual-content p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

.visual-features {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
    text-align: left;
}

.visual-features li {
    padding: 15px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.visual-features li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Right Side - Form */
.form-content-side {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.form-container {
    width: 100%;
    max-width: 480px;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

/* Form Messages */
.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.form-message.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.form-message.success::before {
    content: "✓";
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.form-message.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.form-message.error::before {
    content: "✗";
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .required {
    color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #fafafa;
}

.form-group input:hover {
    border-color: #d0d0d0;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

/* Form Row (for side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
}

.btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-large:active {
    transform: translateY(0);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
    color: #666;
    font-size: 15px;
}

.form-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.form-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Dashboard Section */
.dashboard-section {
    padding: 60px 20px;
    min-height: 80vh;
    background: #f8f9fa;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dashboard-card-wide {
    grid-column: span 2;
}

.dashboard-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 140px;
}

.info-value {
    color: #333;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .user-form-section {
        flex-direction: column;
    }

    .form-visual-side {
        min-height: 300px;
        padding: 40px 30px;
    }

    .visual-content h1 {
        font-size: 36px;
    }

    .visual-features {
        display: none;
    }
}

@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card-wide {
        grid-column: span 1;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-content-side {
        padding: 40px 20px;
    }

    .form-visual-side {
        padding: 30px 20px;
    }

    .visual-content h1 {
        font-size: 28px;
    }

    .visual-content p {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .form-container {
        padding: 0;
    }

    .form-header h2 {
        font-size: 26px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }
}


.user-form-section .container {
    max-width: 900px;
}

.form-wrapper {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-wrapper-small {
    max-width: 500px;
    margin: 0 auto;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Form Sections */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .required {
    color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

/* Form Row (for side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
}

.btn-large {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.form-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Section */
.dashboard-section {
    padding: 60px 20px;
    min-height: 80vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dashboard-card-wide {
    grid-column: span 2;
}

.dashboard-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 140px;
}

.info-value {
    color: #333;
    flex: 1;
}

@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card-wide {
        grid-column: span 1;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .form-wrapper {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 26px;
    }

    .user-form-section {
        padding: 40px 15px;
    }
}