@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

body {
    font-family: 'Quicksand', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* --- Login/Registration Forms --- */
#login-form, #registration-form {
    background: #fff;
    max-width: 370px;
    width: 100%;
    margin: 64px auto 0 auto;
    padding: 2.5rem 2.2rem 2.2rem 2.2rem;
    border-radius: 20px;
    border: 2px solid #a3bffa;
    box-shadow: 0 6px 32px rgba(60, 72, 88, 0.13), 0 2px 8px rgba(60, 72, 88, 0.09);
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

#login-form {
    background: linear-gradient(120deg, #f8fafc 80%, #e0e7ef 100%);
}

#registration-form {
    background: linear-gradient(120deg, #f8fafc 80%, #e0e7ef 100%);
}

#login-form label, #registration-form label {
    font-family: 'Quicksand', Arial, sans-serif;
}

#login-form input, #registration-form input {
    font-family: 'Quicksand', Arial, sans-serif;
}

#login-form button, #registration-form button {
    font-family: 'Quicksand', Arial, sans-serif;
}

#login-form h2, #registration-form h2 {
    letter-spacing: 0.02em;
}

h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #3a4668;
    letter-spacing: 0.01em;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: #5a6a8a;
    font-weight: 500;
    letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.3rem;
    border: 1.5px solid #e0e7ef;
    border-radius: 10px;
    background: #f7fafd;
    font-size: 1.05rem;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #a3bffa;
    outline: none;
    background: #f0f6ff;
}

button[type="submit"],
#toggle-registration {
    width: 100%;
    padding: 0.85rem 0;
    background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 10px rgba(76, 110, 245, 0.10);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    letter-spacing: 0.01em;
}

button[type="submit"]:hover,
#toggle-registration:hover {
    background: linear-gradient(90deg, #48c6ef 0%, #6c63ff 100%);
    box-shadow: 0 4px 18px rgba(76, 110, 245, 0.15);
    color: #fff;
}

.button-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 370px;
    margin: 1.5rem auto 0 auto;
}

#toggle-registration {
    flex: 1;
    background: #f7fafd;
    color: #6c63ff;
    border: 2px solid #a3bffa;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 10px;
    height: 44px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    margin: 0;
    box-shadow: none;
}

#toggle-registration:hover {
    background: #e0e7ef;
    color: #3a4668;
    border-color: #a3bffa;
}

a.logout-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: #f7fafd;
    color: #6c63ff;
    border: 2px solid #a3bffa;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    margin: 0;
    box-shadow: none;
}

a.logout-link:hover {
    background: #e0e7ef;
    color: #3a4668;
    border-color: #a3bffa;
}

a {
    display: block;
    text-align: center;
    margin: 2rem auto 0 auto;
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

a:hover {
    color: #48c6ef;
}

/* --- Top Bar --- */
.top-bar {
    width: 100vw;
    min-width: 320px;
    background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 2rem;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(60, 72, 88, 0.10);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #a3bffa;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 1px 1px 0 #fff, 0 1px 0 #a3bffa;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    display: inline-block;
    text-align: center;
}

.username {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #3a4668;
}

.bar-btn {
    background: #fff;
    color: #6c63ff;
    border: 2px solid #a3bffa;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.08);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    margin: 0;
    margin-left: 0.5rem;
    
}

.bar-btn:hover {
    background: #e0e7ef;
    color: #3a4668;
}

/* --- Main Content --- */
.main-content {
    width: 100%;
    max-width: 1100px;
    margin: 2.5rem auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
    padding: 0 1rem;
    box-sizing: border-box;
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(60, 72, 88, 0.07);
}

/* --- Profile Card --- */
.profile-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(60, 72, 88, 0.10), 0 1.5px 6px rgba(60, 72, 88, 0.08);
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    max-width: 320px;
    min-width: 260px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #a3bffa;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    border: 3px solid #6c63ff;
    background: #f7fafd;
    box-shadow: 0 2px 8px rgba(76, 110, 245, 0.10);
}

.profile-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #3a4668;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.profile-card p {
    color: #5a6a8a;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}

/* --- Social Row --- */
.social-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.social-row a {
    color: #6c63ff;
    font-size: 1.4rem;
    background: #f7fafd;
    border: 2px solid #a3bffa;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(76, 110, 245, 0.08);
}

.social-row a:hover {
    background: #6c63ff;
    color: #fff;
    border-color: #48c6ef;
}

/* --- Projects Section --- */
.projects-section {
    flex: 1;
    min-width: 320px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid #a3bffa;
    border-radius: 14px;
    background: #f7fafd;
    box-shadow: 0 2px 12px rgba(60, 72, 88, 0.07);
    padding: 1.2rem 0.7rem;
}

.projects-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #3a4668;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 0 #fff, 0 1px 0 #a3bffa;
}

.projects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(60, 72, 88, 0.10);
    padding: 1.2rem 1.5rem;
    min-width: 220px;
    max-width: 260px;
    text-decoration: none;
    color: #3a4668;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    border: 2px solid #a3bffa;
}

.project-card:hover {
    box-shadow: 0 6px 24px rgba(76, 110, 245, 0.13);
    background: #f7fafd;
    transform: translateY(-4px) scale(1.03);
    color: #6c63ff;
    border-color: #48c6ef;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-shadow: 1px 1px 0 #fff, 0 1px 0 #a3bffa;
}

.project-desc {
    font-size: 0.98rem;
    color: #5a6a8a;
}

/* --- Responsive --- */
@media (max-width: 500px) {
    #login-form, #registration-form {
        max-width: 98vw;
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        border-radius: 12px;
        border: 1.5px solid #a3bffa;
    }
    h2 {
        font-size: 1.25rem;
    }
    button[type="submit"],
    #toggle-registration {
        font-size: 1rem;
        padding: 0.7rem 0;
    }
    .button-row {
        max-width: 98vw;
        gap: 0.5rem;
    }
    .main-content {
        border-radius: 10px;
    }
    .projects-section {
        border-radius: 10px;
    }
    .profile-card {
        border-radius: 10px;
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .projects-section {
        max-width: 100vw;
        width: 100%;
    }
    .projects-row {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 1rem;
        gap: 0.5rem;
    }
    .main-content {
        padding: 0 0.2rem;
    }
    .profile-card {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
        min-width: 0;
        max-width: 98vw;
    }
    .projects-section {
        padding: 0 0.2rem;
    }
    .projects-row {
        gap: 1rem;
    }
}

/* --- Utility --- */
input:disabled, button:disabled {
    background: #e0e7ef !important;
    color: #b0b0b0 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

::-webkit-input-placeholder { color: #b0b0b0; }
::-moz-placeholder { color: #b0b0b0; }
:-ms-input-placeholder { color: #b0b0b0; }
::placeholder { color: #b0b0b0; }
