/* 
 * LinkedIn Sign-in Page - Replica
 * Copyright © 2025 - Replica for educational purposes
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: #f3f2f0;
    color: #000000;
    line-height: 1.5;
    min-height: 100vh;
}

.linkedin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.linkedin-header {
    padding: 12px 24px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.linkedin-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.linkedin-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.linkedin-text {
    font-size: 28px;
    font-weight: 400;
    color: #0a66c2;
    line-height: 34px;
}

/* Main Content Styles */
.linkedin-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.signin-wrapper {
    width: 100%;
    max-width: 400px;
}

.signin-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px 24px 32px 24px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
}

.signin-header-section {
    margin-bottom: 24px;
}

.signin-title {
    font-size: 32px;
    font-weight: 400;
    color: #000000;
    line-height: 40px;
    margin: 0;
}

/* Sign in with Apple Section */
.signin-options-section {
    margin-bottom: 24px;
}

.apple-signin-container {
    margin-bottom: 16px;
}

.apple-signin-button {
    width: 100%;
    padding: 14px 16px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.apple-signin-button:hover {
    background-color: #333333;
}

.apple-icon {
    width: 16px;
    height: 16px;
}

.terms-text {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin-bottom: 16px;
    line-height: 16px;
}

.terms-link {
    color: #0a66c2;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.divider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.divider-text {
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
}

/* Form Styles */
.signin-form {
    margin-bottom: 24px;
}

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

.input-container,
.password-container {
    position: relative;
}

.linkedin-input {
    width: 100%;
    padding: 16px 16px 8px 16px;
    font-size: 16px;
    border: 1px solid #000000;
    border-radius: 4px;
    background-color: #ffffff;
    color: #000000;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    line-height: 24px;
}

.linkedin-input::placeholder {
    color: transparent;
}

.linkedin-input:focus {
    border-color: #0a66c2;
    box-shadow: 0 0 0 1px #0a66c2;
    padding-top: 22px;
    padding-bottom: 2px;
}

.linkedin-input:focus + .input-label,
.linkedin-input:not(:placeholder-shown) + .input-label,
.linkedin-input.has-value + .input-label {
    transform: translateY(-10px) scale(0.75);
    color: #666666;
    top: 8px;
}

.input-label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 16px;
    color: #666666;
    pointer-events: none;
    transition: transform 0.15s ease, color 0.15s ease, top 0.15s ease;
    transform-origin: left top;
    background-color: #ffffff;
    padding: 0 4px;
    line-height: 24px;
}

.password-container {
    position: relative;
}

.password-container .linkedin-input {
    padding-right: 70px;
}

.password-container .linkedin-input:focus {
    padding-right: 70px;
}

.show-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
    z-index: 1;
}

.show-password-btn:hover {
    color: #0a66c2;
    background-color: rgba(10, 102, 194, 0.08);
    border-radius: 4px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.forgot-password-link {
    color: #0a66c2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: #000000;
    cursor: pointer;
}

.signin-button-container {
    margin-bottom: 16px;
}

.signin-button {
    width: 100%;
    padding: 12px 24px;
    background-color: #0a66c2;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 48px;
}

.signin-button:hover {
    background-color: #004182;
}

.signin-button:active {
    background-color: #003152;
}

.join-section {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.join-text {
    font-size: 16px;
    color: #666666;
}

.join-link {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 500;
}

.join-link:hover {
    text-decoration: underline;
}

/* Footer Styles */
.linkedin-footer {
    background-color: #ffffff;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    margin-bottom: 12px;
}

.copyright em {
    font-style: normal;
    font-size: 12px;
    color: #666666;
}

.footer-nav {
    margin-top: 8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-links li {
    font-size: 12px;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
}

.footer-links a:hover {
    color: #0a66c2;
    text-decoration: underline;
}

.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: #666666;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.language-btn:hover {
    color: #0a66c2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .linkedin-main {
        padding: 16px;
    }

    .signin-content {
        padding: 20px;
    }

    .signin-title {
        font-size: 28px;
        line-height: 36px;
    }

    .footer-links {
        gap: 12px;
    }
}

/* Accessibility */
.linkedin-input:focus-visible,
.signin-button:focus-visible,
.apple-signin-button:focus-visible {
    outline: 2px solid #0a66c2;
    outline-offset: 2px;
}

